EAN13 BarCode Generator

HMG Samples and Enhancements

Moderator: Rathinagiri

Post Reply
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

EAN13 BarCode Generator

Post by mol »

Hi guys!
Reading our forum, I was inspired to build my own EAN-13 generator. An idea is based on ZINT Lib By Robert Stuart.
With a little modification, it can be used also as UPC-A and UPC-8 barcode generator.

I'm posting little sample to print barcode.
Remember to enter whole code, because no error protections.

Nice testing, improving and anything else you want to do with this code :lol: !

PS. I think it woud be great idea to attach this sample (or modified, maybe enhanced) as HMG Sample...
Image

Whole sample you can download from http://www.molsystemy.pl/hmg/printean13.zip too
Attachments
PRINTEAN13.ZIP
(6.76 KiB) Downloaded 918 times
User avatar
santy
Posts: 60
Joined: Tue Sep 25, 2012 11:19 am
Location: Ukraine, Lviv
Contact:

Re: EAN13 BarCode Generator

Post by santy »

Thanks Marek,

Very cool and simple example. :)
Best regards,
Oleksandr Antypenko
xHarbour 1.2.3 , Harbour 3.x + Mingw 4.x (HMG, minigui)
https://bitbucket.org/aantypenko
https://github.com/aantypenko
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: EAN13 BarCode Generator

Post by Rathinagiri »

I second Santy. Very nice sample.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: EAN13 BarCode Generator

Post by bpd2000 »

Thanks Marek,
BPD
Convert Dream into Reality through HMG
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: EAN13 BarCode Generator

Post by danielmaximiliano »

Hola Marek :
Gracias por compartir, aqui la impresora tiene la posibilidad de imprimir codigos de barras
internamente, pero siempre hay que tener un solucion a mano.

Hello Marek:
Thanks for sharing, here the printer has the ability to print barcodes
internally, but always have a solution at hand.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: EAN13 BarCode Generator

Post by esgici »

Thanks Marek

Nice and useful share :)

Regards
Viva INTERNATIONAL HMG :D
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: EAN13 BarCode Generator

Post by mol »

I've modified a little sample of printing EAN-13 Code by addding possibility of scaling printed code.
Attachments
PRINTEAN13.ZIP
(3.16 KiB) Downloaded 755 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: EAN13 BarCode Generator

Post by Pablo César »

Thank you Marek for sharing. This will be very usefull.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
hkrasser
Posts: 16
Joined: Fri Jul 10, 2009 12:08 pm
Location: Austria

Re: EAN13 BarCode Generator

Post by hkrasser »

Dear Mol!
I am always impressed from your postings!

In another Topic I have posted this solution - using an Font-file for Ean Code.
I think, the reading percentage is better with this solution:
viewtopic.php?f=5&t=2617&p=23522#p23522

Best regards!

Hans
Post Reply