Information générale
Catégorie:
Fonctions Windows API
Titre:
Changing the selected printer?
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement