Raw Printing
\u003e Introduced in Version 12
Sending a string of commands to a printer directly in its native language is called Raw Printing.
Many thermal printers need these raw commands sent to them in order to perform functions like barcode printing, receipt printing, label printing, etc. Raw Printing bypasses the printer's drivers in most cases, making them very fast and reliable. Raw Printing is also capable of doing some advanced features such as cutting receipt paper, kicking out cash drawers, etc.
1. Setting up Raw Printing in ABNERP
1.1 Installing QZ Tray application on the client computer
Download and install the QZ Tray application on the computer to which your thermal printer is connected. This application can be found at its official site. Currently, Windows, macOS, and Linux are supported by QZ Tray. During the installation you will be prompted to install Java if not already installed, please install Java to complete the installation.
Further instructions on installing the QZ Tray Application can be here.
1.2 Create Raw Commands Print Format
To be able to send raw commands to a printer you need to first create a print format in raw commands. Jinja Templating Language is used in raw commands just like in the HTML custom print format.
To create a new print format for Raw Printing:
- Go to print format list: Home \u003e Settings \u003e Printing \u003e Print Format
- Click on New.
- Select the relevant DocType.
- Check the Custom format and Raw Printing options.
- Fill in the Raw Commands field with the required raw commands to be sent to the printer.
- Click Save.
Currently, any string-based printer languages can be used in the Raw Commands field in the print format. Writing raw commands requires knowledge of the printer's native language provided by the printer manufacturer. Please refer to the developer manual provided by the printer manufacturer on how to write their native commands.
1.3 Enable Raw Printing in the Print Setting
To enable Raw Printing:
- Go to: Home \u003e Settings \u003e Printing \u003e Print Settings \u003e Raw Printing.
- Check the Enable Raw Printing option.
- Save.
2. Methods to utilize raw printing in ABNERP
There are two ways to send Raw Printing commands to your printer.
2.1 Clicking print on the print view page
To print a raw command print format from the Document print view:
- Select appropriate print format. For print format in Raw Commands, \