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
---------------------------
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
---------------------------