EAN-8 Barcode generator

HMG Samples and Enhancements

Moderator: Rathinagiri

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:

EAN-8 Barcode generator

Post by Rathinagiri » Wed Jul 17, 2013 4:16 pm

This is a EAN-8 barcode generator without any ttf fonts. I want to thank Marek for creating such an utility for EAN-13.

Generated barcode is saved as a png image file and can be used for printing or showing in a window afterwards.

This utility requires HMG 3.1.4 and uses HFCL BosTaurus graphics library for image creation.

Hope it is useful.
barean8.zip
(2.57 KiB) Downloaded 361 times
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

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

Post by danielmaximiliano » Wed Jul 17, 2013 5:13 pm

Thanks for sharing Rathi, many people will serve as an example for the development of your application, and there is not much literature about barcodes in our language (Harbour / HMG).

Gracias por compartir Rathi, a mucha gente servira como ejemplo para el desarollo de su aplicacion; ya que no hay mucha bibliografia acerca de codigos de barra en nuestro lenguaje (Harbour / HMG ).
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

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 » Wed Jul 17, 2013 5:26 pm

Excellant Rathi
Thank you for sharing
BPD
Convert Dream into Reality through HMG

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

Post by mol » Wed Jul 17, 2013 7:45 pm

thanks for your work!

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 » Wed Jul 17, 2013 8:14 pm

Hi Rathi
Rathinagiri wrote:This is a EAN-8 barcode generator without any ttf fonts...
Very nice work :)
  • Font independence
    possibility for define size of result,
    nice check sum algorithm,
    good example for notify power of BT and HMG...
    everything is wonderful :)
Thanks :!:

Viva HMG :D
Viva INTERNATIONAL HMG :D

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 » Wed Jul 17, 2013 9:33 pm

Rathinagiri wrote:This is a EAN-8 barcode generator ...
Hi Rathi

Does something like this will be useful ? :

Code: Select all

         TOOLTIP "Enter 8 digit code ( 7 digit for automatic checksum producing )"
as an addition to barcode.code.

Regards
Viva INTERNATIONAL HMG :D

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 » Thu Jul 18, 2013 2:29 am

Yes. I too have thought that. Thanks Esgici.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

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

Post by danielmaximiliano » Thu Jul 18, 2013 3:37 am

Hi Rathi :
Code 96385074 Fail.

Windows 7 Home Premiun, HMG.3.1.4
compiled with Mibuil.bat
barean8.rar
(3.01 KiB) Downloaded 1801 times
Webpage check code
morovia.png
morovia.png (42.9 KiB) Viewed 4415 times
Wikipedia number example
wiki.png
wiki.png (71.06 KiB) Viewed 4415 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

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 » Thu Jul 18, 2013 3:46 am

That is very odd. The message 'Invalid Code!' is given for codes having length < 7 or > 8. Therefore, please verify the length of the code (is there any space?).

It works fine for me.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

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

Post by mol » Thu Jul 18, 2013 5:40 am

Maybe space at the beginning?

Post Reply