Hi everyone,
I have requirement to print 2d barcode . can any one know how to print 2d barcode using progress 4gl .plesae help .
Thanks in advance.
Hi Jagdeesh,
you will need to have some kind of control (OCX or .NET) in place to display the barcode. If it comes to reporting, most of the report engines have build in support for barcodes or you need to use a special font that does the job for you.
regards,
Marko
You could take a look at http://docxfactory.com/ (Linux and Windows document generator with many barcodes supported) or https://zxingnet.codeplex.com/ (opensource .NET control also many barcodes supported)
Richard
Combit does a good job as well.
We use List&Label from Combit for many years now.
Forwarding your dataset to the designer and based on available Windows printer drivers you can print many barcode as the driver and LL support.
Programming and design of layouts are separated. Layout adjustments can be done without programm adjustments as long as the data is included in your dataset.
For most label printers you find proper drivers at Seagull.com.
docxfactory uses zint to generate barcodes, a popular open source barcode library.
zint might have a command line tool although i'm not sure if it's open source as well.
btw docxfactory has been published on github under the apache 2.0 open source license.
With Zebra you can design the label in the Software, and to get the codes for send directly to the printer.
Example:
^XA
^CW1,R:DOWNLD1.FNT
^CW2,R:DOWNLD2.FNT
^CW3,R:DOWNLD3.FNT
^CW4,R:DOWNLD4.FNT
^COY,0^MMT^MD+0
^XZ
^XA^CI0,167,167^XZ
^XA
^PR3^FS
^MNY^FS
^BY3,2.5^FS
~SD25
^FT780,60^AFR,15,10^FDAlm^FS
^FT734,120^AGR,32,25^FD110^FS
^FT780,550^AFR,15,10^FDEtiqueta^FS
^FT700,750^BCR,90,N,N,Y^FD200559781^FS
^FT690,25^AFR,15,5^FDPart^FS
^FT635,750^AGR,32,25^FD200559781^FS
^FT600,120^AGR,120,20^FD87361994^FS
^FT500,30^BCR,90,N,N,Y^FD87361994^FS
^FT500,550^ACR,42,20^FDPLATE, REAR UPPER^FS
^FT460,30^AFR,15,10^FDCantidad^FS
^FT400,50^AGR,32,25^FD66^FS
^FT300,30^BCR,90,N,N,Y^FD66^FS
^FT380,950^AFR,15,10^FDLinea Prod^FS
^FT345,970^ACR,42,20^FDTTENS003^FS
^FT270,400^AFR,15,10^FDUbicacion^FS
^FT225,430^ACR,50,20^FDEMBFAC^FS
^FT180,50^AFR,15,10^FDNo. Empleado Turno Fecha^FS
^FT180,950^AFR,15,10^FDF Imp^FS
^FT150,970^ACR,42,20^FD17/01/17^FS
^FT90,820^ACR,140,40^FDOK^FS
^FT125,950^AFR,15,10^FDTurno^FS
^FT95,970^ACR,42,20^FD1^FS
^FT20,60^ACR,52,30^FDCNH Components S.A.^FS
^FT50,950^AFR,15,10^FDUsuario^FS
^FT20,970^ACR,42,20^FDjgalvan^FS
^FO10,10^GB200,900,3,B^FS
^FO210,10^GB280,350,3,B^FS
^FO490,10^GB315,1200,3,B^FS
^FO10,10^GB795,1200,3,B^FS
^ISSTRNWARE,N^FS
^XZ
^XA
^PR3^FS
^ILSTRNWARE^FS
^PF0^FS
^PQ1,0,0,Y
^XZ
^XA
^IDSTRNWARE
^XZ
I use exactly the same approach as Marco...
Just to make some observations,
I talk directly to the printer, with an OUTPUT TO \\server\printerX
Where printerX is a zebra printer defined with TEXT ONLY driver. in windows.. and the direct access icon to the system ends with a -Wa -wpp set of paramteres.. (command line)
(so far 7 million labes and counting, since 2006)
Just to complete the list ;) I'm using pdfInclude (new version) for this use case, thus doing this in pure ABL/4GL.
Can do a lot of different barcodes, incl. code39, code39 extended, code128, EAN13, EAN2 & 5 extensions, UPC-A, EAN8, Interleaved 2 of 5, code93, code93 extended, PDF417.
Full disclosure: I'm the developper of pdfInclude, see www.oehive.org/pdfinclude
afaik, you will need to both install the font on every machine and calculate the value.
if anyone is interested, there's a ready made font and getbarcode128.p procedure in the standard libraries project at the oehive.org
note that the font is windows only.