So Razzak, please clarify:
If at the beginning of the command file you do:
set var DefaultPrinter = (cval('WindowsPrinter'))
prnsetup myprinter
print myreport option printer
then at the end of the program:
prnsetup .DefaultPrinterIt is not neccesary to do the above, get the default printer and restore it at the end?
The 'currentprinter' is what you specify in prnsetup and it does not change the windows default printer????
So where will the next print command print?
Bernie Lis
----- Original Message ----- From: "A. Razzak Memon" <[EMAIL PROTECTED]>
To: "RBG7-L Mailing List" <[email protected]>
Sent: Friday, May 06, 2005 10:43 PM
Subject: [RBG7-L] - RE: Pre-Release Version of Update 81 (Build:7.1.81.30505)
At 08:45 PM 5/6/2005, Philippe Gosselin wrote:
What do I have to do to print to another printer? Is the only way to change your default printer in windows? Why doesn't the PRINT command take into consideration the PRNSETUP command?
I'm sure you can put me back in the right track.
Philippe,
Try the following and see what you get:
PRNSETUP HP Laserjet 2200d PRINT reportname OPTION PRINTER
Notice the printer name HP Laserjet 2200d without quotes.
You may also use the (CVAL('CurrentPrinter')) function to verify the currently selected printer for R:BASE session.
Very Best R:egards,
Razzak.
