Search This Blog

Friday 21 February 2014

Barcode Printing with ZPL ZPL II - NAV

Have you had to print barcodes directly into a printer from NAV? Yes, most of us who have clients from the manufacturing or retail domain often have to undergo the cumbersome exercise of developing, formatting and deploying such reports.

However, during a recent visit to one of my clients manufacturing utility I had a chance to work on Zebra printers. Zebra comes with its own set of programming (scripting) language called ZPL and more recently have developed a more robust version of the same language and have baptized it as ZPL II.

There's not much difference between the 2, its just that ZPL II sends commands much faster resulting in less standby when sending commands to print multiple barcodes at once.

And believe me, its much easier to use these commands from NAV and send it to the printer.

So, this is what you need to do.

Create a template using the designer tool which comes along with the driver. Save this file as a text file onto a drive which is accessible to the user.

Share the Barcode printer across the network so that we can send commands to the printer.

Copy the code from the text file and paste it into a section of the report.

The end result looks like below:


So, I saved the contents of the report onto a text file again and send the text file to the printer using the SHELL command.

No formatting hassels!!!


No comments:

Post a Comment