Table of Contents

Print Existing PDF Documents

You can print existing PDF documents to a printer. Normally, you use direct print when running reports in Business Central, but you may also have other PDF documents you want to print. Typical examples of this are technical drawings or shipping labels. Maybe you can call your shipping provider's API and get a PDF label in return. Printing an existing PDF only requires a single line in AL-code.

procedure Create(documentName: Text; 
    directPrinterName: Text; 
    documentInStream: InStream;
    documentContentType: Option)

You can use the print queue in ForNAV Direct Print to print existing PDF files. A job on the print queue is information about which document should be printed to which local printer.

Use the Create method on the ForNAV DirPrt Queue table to add the job to the queue.

Direct print queue table