[Gambas-user] BarCode

Lorenzo Tejera fidojones at ...805...
Tue Apr 24 12:56:04 CEST 2007


Here is an example with EAN13 in gambas

http://www.fidojones.com/downloads/

byyyyyee

2007/4/23, Paul Horechuk <horechuk at ...981...>:
>
> On April 23, 2007, Paul Horechuk wrote:
> > On April 23, 2007, nando wrote:
> > > Info: I do know that there are PHP scripts to do this.
> > > -Fernando
> > >
> > >
> > > ---------- Original Message -----------
> > > From: Werner <wdahn at ...1000...>
> > > To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> > > Sent: Tue, 24 Apr 2007 01:34:55 +0800
> > > Subject: Re: [Gambas-user] BarCode
> > >
> > > > Hamilton Geminiano Andrioli Junior wrote:
> > > > > Hi Guys!
> > > > >
> > > > > I need some papers about how to produce barcodes with gambas.
> > > > > I have to print Code 2 of 5 interleaved and EAN13.
> > > > >
> > > > > Anyone?
> > > > > In VB i used some True Type Fonts i founded in internet. In
> Gambas?
> > > > > how to do? And i had a OCX that prints a EAN13 bar code.
> > > > >
> > > > > Well, now i will have to learn how to make this...
> > > > >
> > > > > Any help?
> > > > > Regards
> > > > > Hamilton From Brazil!
> > > >
> > > > Do you think KBarcode might be for you?
> > > > http://www.kbarcode.net/
> > > >
> > > >
> ---------------------------------------------------------------------
> > > >-- -- This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > _______________________________________________
> > > > Gambas-user mailing list
> > > > Gambas-user at lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > > ------- End of Original Message -------
> > >
> > >
> > >
> -----------------------------------------------------------------------
> > >-- This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> > Sorry I used the wrong subscriber address the first time...
> >
> >
> > Look for a program called GNU barcode. It is commandline driven and will
> > accept as parameters, the string to encode, the encoding method, and the
> > name of the PS output file, plus a few flags.
> >
> > eg: barcode -n -e 128b -b "@$1" -o /tmp/barcode.ps
> > will use code 128B to encrypt the passed text (@$1), strip the ascii
> text
> > label and produce a PostScript file called /tmp/barcode.ps
> >
> > You can then use ghostscript to further process:
> > gs -dNOPAUSE -sDEVICE=png256 -sOutputFile=/tmp/barcode.png -q -dBATCH
> > /tmp/barcode.ps
> >
> > This will convert from the ps file to 256 colour png, and finally:
> > convert /tmp/barcode.png -crop 140x50+7+703 /tmp/barcode.png
> > to trim the barcode to the desired size.
> >
> > No need for special fonts!
>
> PS:
> These are all linux apps, run from the commandline, and so all gambas has
> to
> do is use the shell command.
>
>
> --
> Paul Horechuk
>       Think Free
> Use Open Source Software
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list