Pass template/format through application instead of storing on printer using Link-OS SDK or otherwise

Tags: 

While using LinkOS SDK, we realise there is no provision to pass format/template from application. It has to be rather stored on printer and recalled from there for data merging and printing. Is that understanding correct?

Steven Si
The template label printing

The template label printing is to have a predefined template in ZPL (called Stored Format) pre-stored on the printer, and then send the recall template in ZPL (called Recall Format) to the printer to call out the pre-stored template in the printer. The printer will merge (or replace) the variables in the Stored Format with the data in the Recall Format, and then print out the label. The advantage is that the Stored Format in ZPL only needs to be sent to the printer once, so we save the time of transmitting the graphics (usually have large amount of image data) in the Store Format by only sending the graphics once. The Recall Format (which is a lot shorter, as it usually contains variable names and data) can then be sent to the printer many times with different data to print out the labels with different data, such as address label for example.

Both the Stored Format and Recall Format are simply text files. We can use FileUtil.sendFileContent() API or Connection.write() API to send the text content of these files to the printer.

There is a helper class in Link-OS SDK, called FormatUtil. This class provides convenient APIs to help the application to create and send the ZPL of the Recall Format to the printer. Hope this helps.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments