Information générale
Catégorie:
Fonctions Windows API
Titre:
PDF to Specific Printer
Versions des environnements
Network:
Windows 2003 Server
Using ShellExecute with the verb "Print" and a PDF file prints the file just fine. The problem is that I need to print to a printer that is not the default printer. I can set the printer with:
set printer to name "Printer Name"
That works fine for Foxpro output but, ShellExecute knows nothing about Foxpro's printer.
ShellExecute has a "parameters" argument but Acrobat's documentation doesn't mention (or at least, I can't find any mention) of what parameters are avalible. I was hoping for a "printer to use" parameter.
Another direction was to try to change the Windows default printer and then switching back to the original after the print job. Set() can tell you the Windows default printer but set "printer to" doesn't provide a means of setting the Windows default.
Does anyone have any ideas?
Suivant
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