---
title: "Direct Printing Support for RAW, URI, and InStream"
app: "PrintNode Connector PowerTool"
section: "How-to guides"
last_updated: "2021-08-09"
url: "https://insight-works.com/kb/printnode-connector-powertool/direct-printing-support-for-raw-uri-and-instream/"
---

# Direct Printing Support for RAW, URI, and InStream

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. |
