It depends on your needs...

I use Zebra and TEC printers to print shipping labels and product labels.

My needs have been:
- small file size (I printed the labels over a vpn-network / wan)
- good barcode quality
- no drivers to be installed
-------------------------

Here is my solution:

For each label-type (e.g. for each shipping partner) I store a template which 
contains the zpl (zebra printer language) codes. I use some placeholder like 
($name, $city) and then I do a replace of this placeholders and write the label 
to a file.
This file gets printed by lpr (a unix tool to send data directly to the 
printer).

Actually I use this method to print from another erp-system but I after my 
migration to openerp I use it within openerp (I've done some tests which worked 
quite good).

Here is an zpl-sample Template:



^XA
^MCY
^XZ
^XA
^FWN^CFD,24^PW839^LH0,0
^CI6^PR2^MNY^MTT^MMT^MD0^PON^PMN^LRN
^XZ
^XA
^MCY
^XZ
^XA
^DFR:TEMP_FMT.ZPL
^LRN
 ^MD10
^A0R,24,24^FO750,100^FD$sender_name^FS
^A0R,24,24^FO720,100^FD$sender_street^FS
^A0R,24,22^FO690,100^FD$sender_zip $sender_city^FS
^A0R,50,50^FO690,550^FDDPD^FS
^A0R,22,22^FO650,100^FDDPD GeoPost Deutschland GmbH&Co.KG^FS
^A0R,22,22^FO620,100^FDDepot 0166^FS
^A0R,22,22^FO590,100^FDSuedstrasse 51  /  66386 St. Ingbert^FS
^FO680,85^GB1,420,3,3,B,0^FS
^FO580,85^GB1,420,3,3,B,0^FS
^FO100,855^GB600,1,8,8,B,0^FS
^FO50,85^GB900,1,3,3,B,0^FS
^FO50,500^GB900,1,3,3,B,0^FS
^FO50,720^GB700,1,3,3,B,0^FS
^FO100,1080^GB600,1,8,8,B,0^FS
^A0N,30,30^FO50,100^FD$addressee_name^FS
^A0N,30,30^FO50,140^FD$addressee_name2^FS
^A0N,30,30^FO50,180^FD$addressee_street^FS
^A0N,40,40^FO50,230^FD$addressee_country  $addressee_zip^FS
^A0N,40,40^FO50,270^FD$addressee_city^FS
^A0N,30,30^FO50,550^FDReferenz: $ID^FS
^A0N,30,30^FO400,575^FD$Collis^FS
^BY3^FO100,860^BCN,220,N,N,N^FD$barcode^FS
^XZ
^XA
^XFR:TEMP_FMT.ZPL
^PQ1,0,1,Y
^XZ
^XA
^IDR:TEMP_FMT.ZPL
^XZ


I think this is a possible way, an other way would be to use drivers and let 
the OS generate the labels. Then the printers could be changed without problems 
but
1. I'm not sure if the quality of the barcodes is as good
2. by using zpl you have more freedom to use special functions of the printer 
(e. g. page formats)
3. This solution works within a big network on every client, you do not need to 
install any drivers on the clients.

I hope this could give you some ideas.

MG




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=56942#56942

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to