sys(6) or otrher means to know what selected printer device is.
Index
‹
Visual FoxPro
‹
Visual FoxPro General
Author
Message
Aleniko29139
Posted: 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 FoxPro1
Vedat ARAL
Posted: Visual FoxPro General, sys(6) or otrher means to know what selected printer device is.
Top
To get windows default printer
DECLARE INTEGER GetDefaultPrinter IN winspool.drv STRING @ pszBuffer,INTEGER @ pcchBuffer
Printername = SPACE(255)
PrintBuffer = 255
lResult = GetDefaultPrinter(@PrinterName,@PrintBuffer)
To set window default printer
DECLARE long SetDefaultPrinter IN WINSPOOL.Drv String printername
lResult=setDefaultPrinter(myPrinterName)
Aleniko
Posted: 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
Posted: Visual FoxPro General, sys(6) or otrher means to know what selected printer device is.
Top
Try:
Set
("Printer",
3
)
HTH
Index
‹
Visual FoxPro
‹
Visual FoxPro General