2 Replies Latest reply on Mar 29, 2011 2:49 AM by LeJul

    Automatic print




      I need to print automatically from a software I develop.

      I think I'll use a script for this.

      I have 2 questions:



      the command:

      "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" /p /h "C:\TEST\myfile.pdf"

      works, but it goes on the defaul printer.


      So I'm trying with:

      "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" /t "C:\TEST\myfile.pdf" "\\mycomputer\myPrinterWithA SpaceInTheName"

      but it doesn't work ...



      I will deploy my application on differents customers informatic parcs, with differents Adobe versions.

      In my script, before printing I read in registery:

      - HKCR\.pdf, to get AcroExch.document

      - HKCR\AcroExch.document.7\shell\print\command, or HKCR\AcroExch.document.7\shell\printto\command

      to be sure to have the right command used in 1.


      Will these keys change in future versions ?

      Can I use directly the command (used in 1) without reading registry and be sure to have the right command ?