sys(6) or otrher means to know what selected printer device is.  
Author Message
Aleniko29139





PostPosted: Visual FoxPro General, sys(6) or otrher means to know what selected printer device is. Top

Hi;

How can I know what is the current printer Sys(6) often returns either nothing or sometimes it would return a path to the server where the app is installed.

Thx.


Visual FoxPro2  
 
 
Vedat ARAL





PostPosted: Visual FoxPro General, sys(6) or otrher means to know what selected printer device is. Top

To get windows default printer



Printername = SPACE(255)
PrintBuffer = 255


To set window default printer

DECLARE long SetDefaultPrinter IN WINSPOOL.Drv String printername
lResult=setDefaultPrinter(myPrinterName)


 
 
Aleniko





PostPosted: Visual FoxPro General, sys(6) or otrher means to know what selected printer device is. Top

Thanks, but im interested in the current print settings in vfp - not the default windows printer.

 
 
Alex Feldstein





PostPosted: Visual FoxPro General, sys(6) or otrher means to know what selected printer device is. Top

Try:

Set("Printer",3)

HTH