|
-
Jul 16th, 2008, 07:16 PM
#1
Thread Starter
Junior Member
Auto printing pdf files using vb script
Hi,
I would like to know if anyone has a script for printing pdf files from a network printer?
I tried creating a bat file but that would not print.
Below is my script
option explicit
Dim acroAP As New Acrobat.AcroPDDoc
Dim wb 'le classeur
Set acroAP = CreateObject("Acrobat.application")
acroAP.Visible = False
Set Wb = acroAP.document.Open("C:\test\Time.pdf")
Wb.document(1).PrintOut ,,,,"Adobe PDF",True,,"c:\test\Time.pdf"
wb.close false
acroAP.quit
Set Wb = Nothing
Set XlApp = Nothing
Last edited by superfly11; Jul 17th, 2008 at 07:31 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|