When I was running NAV 2009 I used PDFCreator, BioPDF or BullZipPDF printers to create a PDF copy of a report. In NAV 2013 we have the option to use native SAVEASPDF command that uses built-in methods to create a PDF document on the server.
I used the Job Queue in NAV 2009 to send all my invoices and credit memos via email to my customers. An updated version for NAV 2013 that uses
FileName := FileMgt.GetDirectoryName(FileMgt.ServerTempFileName(‘pdf’)) + ‘\’ + STRSUBSTNO(‘%1 %2.pdf’,TABLECAPTION,"No.");
IF EXISTS(FileName) THEN
SalesInvHeader := "Sales Invoice Header";
IF Invoice.SAVEASPDF(FileName) THEN BEGIN[/code]
is attached below.