Options

Print PDF file with automation code ?

FabriceFabrice Member Posts: 17
edited 2001-08-25 in Navision Financials
Hy,

It's possible to print PDF files directly from Navision with automation code ?

No problem with Word, excel ... but with Acrobat Reader ?!

Please, help me !

Fabrice (from Belgium)

Comments

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You'll need the full version of Acrobat for that, not just Acrobat Reader.

    If you look in the download section of this site, you will find some tools to create pdf-files directly from Navision, without the use of Adobe Acrobat. Give it a try!
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    mayermayer Member Posts: 50
    If you wan´t to print directly you call

    acrobat /p file.pdf

    In Visual Basic you can use the acrobat.ocx and then
    pdf.src = file.pdf
    pdf.printall

    Hope this helps.

    greetings Ralph


    [This message has been edited by mayer (edited 24-08-2001).]
  • Options
    John_TegelaarJohn_Tegelaar Member Posts: 159
    Actually, the Acrobat Reader has another switch also:
    Print file with Printer Dialog
    Shell('c:\Program Files\AcroRd32.exe /p ' + FileName,1)

    Print file to printer PrinterName, without dialog
    Shell('c:\Program Files\AcroRd32.exe /t ' + FileName + PrinterName, 1)

    You many need to surround the file/printername with double quotes (") if there are spaces in the name.

    John
Sign In or Register to comment.