Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Windows Default printer
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01164637
Message ID:
01164641
Views:
14
>Hi.
>Anybody know of a way, from within an App, to change the Windows Default
> Printer to a specific named Printer.
>(This is required for a POS app where output can only be directed to the Windows Default printer. So I plan to:
>1. MyPrin = 'Named printer'
>2. Set Windows Default printerr to MyPrin
>3. Do the Printing
>4. Change back to Original Default Printer
>
>Its Line 2 I am unsure about.
>Regards,
>Gerard
DECLARE integer SetDefaultPrinter IN WINSPOOL.DRV STRING

? SetDefaultPrinter(MyPrin )
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform