NAV24 Logo
  • Homepage
EN | PL
Show / Hide Table of Contents

Public API — N24 PrintNode Connector

N24 PrintNode Connector exposes a public codeunit N24PNC PrintNode Connector (ID 71875083) that enables other extensions to submit print jobs to PrintNode printers.

Print() Procedure

procedure Print(PrinterId: Integer; JobTitle: Text; Base64Content: Text; Copies: Integer): Boolean

Parameters

Parameter Type Description
PrinterId Integer The PrintNode printer ID to send the job to. Available on the PrintNode Printers page after synchronization.
JobTitle Text The display name for the print job.
Base64Content Text The document content encoded in Base64 format (PDF, ZPL, or EPL).
Copies Integer The number of copies to print.

Return Value

Boolean — true if the print job was successfully submitted to PrintNode; false otherwise.

Usage Example

codeunit 50100 "My Print Integration"
{
    procedure PrintDocument(PrinterId: Integer; DocumentContent: Text)
    var
        PrintNodeConnector: Codeunit "N24PNC PrintNode Connector";
        Success: Boolean;
    begin
        Success := PrintNodeConnector.Print(PrinterId, 'My document', DocumentContent, 1);
        if not Success then
            Error('Failed to submit print job.');
    end;
}

Requirements

  • A PrintNode API key must be configured on the N24PNC - PrintNode Connector Setup page
  • Printers must be synchronized (use the Sync Printers action)
  • The user must have the N24PNC - Standard permission set
In This Article
Any questions? 👉 Contact us: produkty@nav24.pl ↑ Back to top