Differences between revisions 4 and 5
Revision 4 as of 2007-03-21 08:51:53
Size: 2209
Editor: ŁukaszNowak
Comment: added introduction, link to zebra site
Revision 5 as of 2008-01-03 13:48:02
Size: 2214
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
[[AttachList]] <<AttachList>>
Line 22: Line 22:
is available on-line on [http://www.zebra.com/ Zebra's] website. is available on-line on [[http://www.zebra.com/|Zebra's]] website.
Line 46: Line 46:
This BT was made in [http://www.ventis.com.pl/ Ventis] by [:ŁukaszNowak:Łukasz Nowak]. This BT was made in [[http://www.ventis.com.pl/|Ventis]] by [[ŁukaszNowak|Łukasz Nowak]].

Introduction

In organisation there is need to print bar code labels on stickers. One possibility is to use sticker printer and send to it PostScript or any other general purpose printing command. But for heavy-duty usage, when count of labels is high, such scenario has disadvantages - in such case printer prints slow, and quality of labels isn't acceptable.

There is special language - Zebra Programming Language (ZPL) - which is optimised for printing bar code labels. This how-to describes usage of ZPL in ERP5 from user and developer point of view.

Preparation

Download newest version of ventis_zebra_gpl from the list. Install it and read this how-to.

Versions list:

  • [get | view] (2007-03-20 15:33:05, 7.8 KB) [[attachment:ventis_zebra_gpl-0.8.0.bt5]]
  • [get | view] (2007-09-20 11:42:45, 8.0 KB) [[attachment:ventis_zebra_gpl-0.8.1.bt5]]

How to create a ZPL template

  1. Open Zebra Designer and create a new label
  2. Edit your label in any way you want - add text, frames, images and barcodes
  3. Print the label to a file - the label will be saved in a text file

The Business Template attached, demonstrates how to use a ZPL script with Page Templates. For more information about ZPL please read 'ZPL II Programming Guide', which is available on-line on Zebra's website.

How to use demo template

  1. Install ERP5 (based on erp5_xhtml_view) and erp5_base
  2. Install ventis_zebra_gpl
  3. Restart Zope
  4. Set preferences for Zebra printer and activate them
  5. Navigate to portal_skins/ventis_zebra_gpl/ZPLPrintExampleSticker_form
  6. Choose number of copies, type some text and print labels
  7. They will be send to printer

Some technical information

This BT is connecting to Zebra printer via FTP port and it is sending pure ZPL data. While creating ZPL templates you may set print quality and any other printing properties. Images can also be attached to the template. The template can be put as a Page Template in Zope instance and can be 'TALed'.

This example was tested on Zebra Z4Mplus printer, but should also work on any other ZPL network enabled printer.

About

This BT was made in Ventis by Łukasz Nowak.

TODO

  • make it more generic
  • test it more
  • check for guidelines

HowToUseZPLPrinters (last edited 2008-01-03 13:48:02 by localhost)