Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the selected printer?
Message
De
10/06/1999 21:22:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Changing the selected printer?
Divers
Thread ID:
00228618
Message ID:
00228618
Vues:
37
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
Fil
Voir

Click here to load this message in the networking platform