Results 1 to 1 of 1

Thread: Auto printing pdf files using vb script

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    23

    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
  •  



Click Here to Expand Forum to Full Width