Direct Printing Support for RAW, URI, and InStream

You are here:

PrintNode Connector version 2.2.7873.0 and newer provides developers with extensible support for direct printing to the PrintNode service from Business Central.

Direct Printing Functions

The direct printing functions are contained in Codeunit IWX PrintNode API Mgt.

PrintDirect for RAW and URI

PrintDirect (piPrinterID: Integer; psPrintJobTitle: Text; penumPrintType: Enum “IWX PrintNode Print Type”; psPrintJobText: Text; piPrintJobQty: Integer)

This function sends the direct printing request to the PrintNode service using RAW or URI details. The following parameters are in order of the function signature:

Parameter Type Input Comment
piPrinterID Integer PrintNode Printer ID Specifies the PrintNode Printer ID where the direct printing request is sent.
psPrintJobTitle Text Print job title Specifies the print job title sent with the direct printing request. This is the name that appears in the operating system’s print queue.
penumPrintType Enum PrintNode Print Type Specifies the PrintNode Print Type for the direct printing request. Acceptable enum values are RAW, PDF URI, and RAW URI.
psPrintJobText Text Print job text Specifies the job details to send for the direct printing request. For the RAW print type, this is string of commands to send to the printer directly in its native language. For the PDF URI and RAW URI print types, this is the URL from which the document to print can be downloaded.
piPrintJobQty Integer Print job quantity Specifies the number of times the print job should be delivered to the print queue. For RAW and RAW URI printing requests, this is the total number of copies to print.

PrintDirect for InStream

PrintDirect (piPrinterID: Integer; psPrintJobTitle: Text; penumPrintType: Enum “IWX PrintNode Print Type”; pisPrintJobInStream: InStream; piPrintJobQty: Integer)

This function sends the direct printing request to the PrintNode service using an InStream object generated from Business Central. The following parameters are in order of the function signature:

Parameter Type Input Comment
piPrinterID Integer PrintNode Printer ID Specifies the PrintNode Printer ID where the direct printing request is sent.
psPrintJobTitle Text Print job title Specifies the print job title sent with the direct printing request. This is the name that appears in the operating system’s print queue.
penumPrintType Enum PrintNode Print Type Specifies the PrintNode Print Type for the direct printing request. For InStream printing, the only acceptable enum value is PDF.
pisPrintJobInStream InStream Print job InStream

object

Specifies the InStream object to use for the direct printing request.
piPrintJobQty Integer Print job quantity Specifies the number of times the print job should be delivered to the print queue.
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Need help?

Leave A Comment

Go to Top