Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the selected printer?
Message
From
10/06/1999 21:22:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Changing the selected printer?
Miscellaneous
Thread ID:
00228618
Message ID:
00228618
Views:
38
I am printing reports to Adobe Acrobat using the Abobe Distiller printer driver. My question is what is the easiest way to select this printer before issuing the report form command? I cant use Set Printer To Name because I am in FPW2.6a. Do I have to change the printer in Tag or Tag2 in the frx? or issue a Set Printer To something? The port in the Distiller driver properties is a path with \*.pdf at the end so I'm not sure how to handle this in the Set Printer To command or if I even can!

The user can select printer, email or both. If both, the report form command will be issued twice. The first time to the distiller printer driver, the second to a printer they choose with sys(1037).

I have tried the code from the microsoft kb where it changes the default printer but this still doesn't do the trick. The report prints wherever it last printed to, not to the default printer. Is there a way to reset the printing to the default printer or use an API call to change the currently selected printer?

Thanks for any help. I am in desperate need of a solution!

Sally
Reply
Map
View

Click here to load this message in the networking platform