Print Document [PRINTNFR]
Method Name: PRINTNFR
Prints a Document. In case of a fiscal printer the document is printed as a “No Fiscal Receipt”.
Request
Level | Node Name | Node Value(s) | Notes |
---|---|---|---|
0 | NFReceipt | ||
1 | Layout | <string> | Name of the Layout to be applied to the document. |
1 | StoreCode | <string> | Code of the Store |
1 | TillCode | <string> | Code of the Till |
1 | Number | <string> | Document Number |
1 | DateTime | <datetime> | Date and Time of the Document |
1 | CountryCode | <string> | Code of Store’s country |
1 | CompanyCode | <string> | Codice of the Store’s Company |
1 | CompanyTaxCode | <string> | Company Tax Code |
1 | OperatorCode | <string> | Codice of the Till Operator |
1 | Header | ||
2 | Lines |
This Node contains a list of NFReceiptLines objects, They can be of different types. You can mix as many line types as you want but they must be consistent. See NF Receipt Lines for the details | |
1 | Lines |
This Node contains a list of NFReceiptLines objects, They can be of different types. You can mix as many line types as you want but they must be consistent. See NF Receipt Lines for the details | |
1 | Footer | ||
2 | Lines |
This Node contains a list of NFReceiptLines objects, They can be of different types. You can mix as many line types as you want but they must be consistent. See NF Receipt Lines for the details |
NFReceiptLines
Text
Prints a Text Remark
Level | Node Name | Node Value(s) | Notes |
---|---|---|---|
1 | Text |
|
|
2 | Value | <string> | Message Text |
2 | Size | <integer> | Size (device dependent) |
2 | Alignment | LEFT | Left Aligned |
RIGHT | Right Aligned | ||
CENTER | Centered | ||
2 | Effects | BOLD | Bold Effects is an array. You can specify as many effects as needed. Each effect is separated by a comma |
Barcode
Prints a Text Remark
Level | Node Name | Node Value(s) | Notes |
---|---|---|---|
1 | Barcode |
|
|
2 | Type | EAN13 | EAN 13 |
EAN8 | EAN 8 | ||
CODE39 | CODE 39 | ||
CODE128 | CODE 128 | ||
QRCODE | QR CODE | ||
UPCA | UPC A | ||
UPCE | UPC E | ||
INTERLEAVED2OF5 | INTERLEAVED 2 OF 5 | ||
2 | Value | <string> | Barcode Value |
Image
Prints an Image, either from an embedded resource or from the file system
Level | Node Name | Node Value(s) | Notes |
---|---|---|---|
1 | Image |
|
|
2 | Source | RESOURCE | From Embedded Resource |
FILESYSTEM | From FileSystem | ||
2 | Value | <string> | Name of the resource or name of the file |
Example
<NFReceipt>
<StoreCode>S02</StoreCode>
<TillCode>001</TillCode>
<Number>123ABC</Number>
<DateTime>2021-04-30T12:53:23</DateTime>
<CountryCode>IT</CountryCode>
<CompanyCode>TK</CompanyCode>
<OperatorCode>MDP</OperatorCode>
<Header>
<Lines>
<Text>
<Alignment>CENTER</Alignment>
<Value>TEST & DEMO PRINTER</Value>
<Size>2</Size>
</Text>
<Text>
<Alignment>CENTER</Alignment>
<Value>ACME LTD</Value>
<Size>2</Size>
</Text>
<Text>
<Alignment>CENTER</Alignment>
<Value>77 Massachusetts Avenue</Value>
<Size>1</Size>
</Text>
<Text>
<Alignment>CENTER</Alignment>
<Value>Cambridge, MA 02139, USA</Value>
<Size>1</Size>
</Text>
<Text>
<Alignment>CENTER</Alignment>
<Value>VAT ID 12345678901</Value>
<Size>1</Size>
</Text>
<Text>
<Alignment>CENTER</Alignment>
<Value>617-253-1000</Value>
<Size>1</Size>
</Text>
<Barcode>
<Type>CODE128</Type>
<Value>MisteryBox</Value>
</Barcode>
</Lines>
</Header>
<Lines>
<Barcode>
<Type>EAN13</Type>
<Value>2000000000022</Value>
</Barcode>
<Text>
<Alignment>CENTER</Alignment>
<Value>GIFT VOUCHER</Value>
<Size>2</Size>
</Text>
<Text/>
<Text>
<Alignment>RIGHT</Alignment>
<Value>10.00 € Voucher</Value>
<Size>2</Size>
</Text>
<Text>
<Alignment>LEFT</Alignment>
<Value>Expiration Date: 31/12/2022</Value>
<Size>2</Size>
</Text>
<Text/>
<Text>
<Alignment>CENTER</Alignment>
<Value>Visit our web site: http://www.theblueseed.com</Value>
<Size>1</Size>
</Text>
<Barcode>
<Type>QRCODE</Type>
<Value>http://www.theblueseed.com</Value>
</Barcode>
</Lines>
<Footer>
<Text>
<Alignment>CENTER</Alignment>
<Value>--------------------</Value>
<Size>1</Size>
</Text>
<Text>
<Alignment>CENTER</Alignment>
<Value>--------------------</Value>
<Size>1</Size>
</Text>
<Text>
<Alignment>CENTER</Alignment>
<Value>END OF DOCUMENT</Value>
<Size>2</Size>
</Text>
<Barcode>
<Type>CODE39</Type>
<Value>TEKIO</Value>
</Barcode>
</Footer>
</NFReceipt>
Response:
Level | Node Name | Node Value(s) | Notes |
---|---|---|---|
1 | ReceiptDateTime | <datetime> | Date Time of the printed receipt |
1 | ReceiptNumber | <string> | Number of the printed receipt |
1 | DeviceSerialNumber | <string> | Serial Number of the Fiscal Printer |
1 | EJNumber | <string> | Number of the Electronic Journal of the Fiscal Printer |
1 | EJClosingNumber | <string> | Number of the Actual Fiscal Printer Daily Closure |
1 | ServerSerialNumber | <string> | Serial Number of the Fiscal Server (only if the fiscal transaction is performed via a fiscal server) |
1 | ReceiptText | <string> | Text of the Receipt |
1 | ReceiptImage | <string> | Image (BASE64 Encoded) of the printed receipt |
1 | MessageText | <string> | Message to be displayed to the operator |
Example:
<ReceiptPrinterManagerResponse>
<ReceiptDateTime>2020-06-06T01:05:00.000Z</ReceiptDateTime>
<ReceiptNumber>244</ReceiptNumber>
<DeviceSerialNumber>99MEX035231</DeviceSerialNumber>
<EJNumber>0</EJNumber>
<EJClosingNumber>45</EJClosingNumber>
<ServerSerialNumber></ServerSerialNumber>
<ReceiptText></ReceiptText>
<ReceiptImage></ReceiptImage>
<MessageText></MessageText>
<Error>False</Error>
<ErrorText/>
<LogFileName/>
</ReceiptPrinterManagerResponse>