Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto Print PDF using VBScript

Status
Not open for further replies.

penaisah

Programmer
Oct 18, 2004
3
NL
I would like to print a PDF-Document automatically using VBScript. The problem is that when I do this in a batch-range, Acrobat Reader does not shut down after printing.
This could not be a great problem, but for each PDF I print the printer-properties need to be adjusted, because there could be switched between A3/A4 format.
Has anyone a solution for me?
Ps. The Terminate Parameter does not work anymore from Reader version 5.0.
I'm using Acrobat Reader version 6.0.2 CE and the following code:
-------------------------
Dim cPath
Dim WshShell
cPath = "D:\PROGRA~1\Adobe\ACROBA~1.0\Reader\acrord32.exe"
Set WshShell = CreateObject("WScript.Shell")
WshShell.run cPath & " /p /h " & cDocPathName
Set WshShell = Nothing
---------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top