>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.