Printing a PDF file from within Navision

magic32magic32 Member Posts: 3
edited 2007-02-28 in Navision Attain
Does anybody know of a method or possibly a driver that will allow me to print a PDF file from directly within Attain. Specifically, we have items that have a link to the actual PDF file. When printing a work order we would like to print the linked PDF file at the same time. Any suggestions??

Comments

  • luisfilipenunesluisfilipenunes Member Posts: 8
    You have several answers to your problem in mibuso forum.

    You can just print the report to the Acrobat Printer driver or you have a technical solution posted before if you don´t want to use Acrobat

    Regards,

    Luís Nunes
  • PDF_WhizPDF_Whiz Member Posts: 1
    Hiya luis...

    I've been using an SDK from www.amyuni.com, they have a printer driver that does this - the PDF Converter. Try their demo and see if you like it. I do :lol:
  • navnavnavnav Member Posts: 16
    Acrobat Distiller is also OK.
  • TirtaTirta Member Posts: 53
    I am searching and searching, but still didn't found the clear answer:

    I want to print a pdf document from a form such as production order, just like to print routing sheet etc.
    Which command can I use to print it exactly? I don't want to create or open the file but just to print it?
    Have anyone any idea?

    Best regards,
    Rizal
  • damndamn Member Posts: 3
    Hi!

    The following C/AL code should do the job:
    result:=SHELL('C:\Acrobat\Acrobat.exe',STRSUBSTNO('/p /h "%1"',filename));
    

    just substitute "filename" with full path to PDF file and "c:\acrobat\acrobat.exe" to full path to AdobeAcrobat or Adobe Acrobat Reader.

    hope that helps,
    damn
  • Denis_PetrovDenis_Petrov Member Posts: 107
    Dear damn,

    would you please specify where one should insert this code?

    Thanks
    Best regards,

    Denis Petrov.
  • SimonWSimonW Member Posts: 77
    Suggestion:
    Create a new processing-only report
    Add this to Report Selections

    The processing report would then be responsible for checking to what PDFs need to be printed at the same time - and would be called automatically

    The only difficulty is trying to ensure that all the documents go to the same printer!

    Of any use?
  • SavatageSavatage Member Posts: 7,142
  • dschieff36dschieff36 Member Posts: 1
    result:=SHELL('C:\Acrobat\Acrobat.exe',STRSUBSTNO('/p /h "%1"',filename));

    This works great, except it leaves adobe reader open. The adobe application does not have the focus and the file that is being printed is not open, just the adobe application remains open. Is there a shell command that will close the adobe reader application?

    Thanks in advance,
    Eric
  • SkeeveSkeeve Member Posts: 33
    No one has mentioned http://www.primopdf.com.

    Works great =D>
  • IBIB Member Posts: 20
    dschieff36 wrote:
    result:=SHELL('C:\Acrobat\Acrobat.exe',STRSUBSTNO('/p /h "%1"',filename));

    This works great, except it leaves adobe reader open. The adobe application does not have the focus and the file that is being printed is not open, just the adobe application remains open. Is there a shell command that will close the adobe reader application?

    Thanks in advance,
    Eric

    If You're using Adobe Reader Vers. 5 You can use command /t instead of /p /h, this thing will open reader,print, and close reader. Versions 6..8 doesn't close reader after printing, so it's solution only for Adobe Reader 5.
  • KaetchenKaetchen Member Posts: 106
    Does anyone know which of this tools can apply/print stationary as well?

    Thanks,
    Stefanie
  • TrippyZTrippyZ Member Posts: 87
    pdfMachine will do stationary.
    Kaetchen wrote:
    Does anyone know which of this tools can apply/print stationary as well?
    Professional Navision Developer
  • SavatageSavatage Member Posts: 7,142
    Kaetchen wrote:
    Does anyone know which of this tools can apply/print stationary as well?

    Thanks,
    Stefanie

    Also Pdf995 has an add-on called EditPDF995 which allows for stationary
    see pic for all the tabs & options
    http://savatage99.googlepages.com/pdfed ... arytab.JPG

    http://www.pdf995.com/
    http://www.pdfedit995.com/
Sign In or Register to comment.