Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PDF to Printer
Message
De
31/07/2001 00:56:36
Kristaupher Reddinger
The Kristaupher Reddinger Company
Newport Beach, Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00531130
Message ID:
00537609
Vues:
10
Troy:

We are doing, what appears to be a very similar thing with Adobe Acrobat Reader. Acrobat reader can be automated via the command line which, in turn, can be directed anywhere you wish. The following sample is how we are printing pdf files automatically to different printers throughout the organization.

oShell = CreateObject( "WScript.Shell" )
oShell.Run( "ACRORD32.EXE /t cFile cPrinter cDriver cPort" )

The 4 parameters are intuitively named for your reference. You may have to do a bit of looking for your printer information to get it right. You can also peek in the registry to get the values for the printer also.

Hope this helps.

P.S. - dont forget to enclose any parameter values in quotes should the names contain spaces.

P.P.S - If the createobject fails, ensure that the standard support libraries you need are registered. This one got us. You can find info on this by searching for WScript.Shell
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform