EAN13 BarCode Generator

HMG Samples and Enhancements

Moderator: Rathinagiri

Post Reply
User avatar
mol
Posts: 3247
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 230 times
Been thanked: 132 times
Contact:

EAN13 BarCode Generator

Post by mol » Tue Nov 06, 2012 8:02 am

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 621 times

User avatar
santy
Posts: 60
Joined: Tue Sep 25, 2012 11:19 am
Location: Ukraine, Lviv
Contact:

Post by santy » Tue Nov 06, 2012 8:11 am

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: 5264
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Tue Nov 06, 2012 8:47 am

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: 1088
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 197 times
Been thanked: 102 times

Post by bpd2000 » Tue Nov 06, 2012 8:53 am

Thanks Marek,
BPD
Convert Dream into Reality through HMG

User avatar
danielmaximiliano
Posts: 2161
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 172 times
Been thanked: 26 times
Contact:

Post by danielmaximiliano » Tue Nov 06, 2012 11:58 am

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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
esgici
Posts: 4517
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 391 times
Been thanked: 111 times
Contact:

Post by esgici » Tue Nov 06, 2012 12:40 pm

Thanks Marek

Nice and useful share :)

Regards
Viva INTERNATIONAL HMG :D

User avatar
mol
Posts: 3247
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 230 times
Been thanked: 132 times
Contact:

Post by mol » Wed Nov 07, 2012 8:44 am

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 499 times

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Wed Nov 07, 2012 5:15 pm

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

Post by hkrasser » Sat Dec 22, 2012 2:17 pm

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