Razzak :

I can't make works the new function (CVAL('CurrentPrinter')) ....
In my case, default's printer name is HP LaserJet III which is connected to
LPT1: parallel port.

SET VAR vWinDefaultPrinter = (CVAL('CurrentPrinter'))

return :

HP LaserJet III on LPT1

I have a second printer named RTEFAX.

PRNSETUP 'RTEFAX'
 switch the current printer to RTEFAX, but I can't switch it back to HP
LasetJet III.

If I follow your example :

SET VAR vWinDefaultPrinter = (CHAR(39) +.vWinDefaultPrinter +(CHAR(39)))
PRNSETUP &vWinDefaultPrinter 
PRNSETUP 
show that the current printer is still RTEFAX.

Same problem with :
SET var Vtext = ('PRNSETUP' & .vWinDefaultPrinter)
&vTEXT

It seems that the extra words 'on LPT1:' returned after 'HP LaserJet III'
prevent to switch back to the default printer.

Using RBW 1.840xRT03 and W98SE (french version).

Can anybody check that ?
Should I report that to RDCC ?

Regards,

J.M. GRATIAS, Logimatique, France

Reply via email to