3 Replies Latest reply on Jun 16, 2009 8:45 AM by tcAtlanta

    Printing PDF files from vbscript

    TomAtlanta2

      I want to print some pdf files using a simple vbscript running on XP.   I tried this and it didn't work:

       

      Set objAcroPDF = CreateObject("AcroPDF.PDF")
      objAcroPDF.LoadFile("C:\D2\Scanner\test.pdf")
      objAcroPDF.PrintAll
      Set objAcroPDF = Nothing

       

      I got the script from this website.

       

      http://www.aspfree.com/c/a/Windows-Scripting/Printing-Documents-in-WSH/4/

      But anyway, it doesn't work. Maybe it used to work and adobe changed
      something or I am doing something wrong.

      So my question is, how do I print pdf documents from vbscript. 
      I have Acrobat 9 standard installed, and so will all the users of this script.