BARCODING, READING AND PRINTING USING FWH

User avatar
Slowfinger
Posts: 10
Joined: Fri Oct 07, 2005 5:57 pm
Location: Madrid
Contact:

Post by Slowfinger »

I recently incorporate barcode printing and reading using de Cayetano's code. It was quite simple to do and althought not all the codes support by the library was correctly recognise, it was enought for me with the Ean13.

In a few day i'd like to test a OCX control captable to print PDF417 codes (but I don't have a reader for that 2D codes).
User avatar
jose_murugosa
Posts: 943
Joined: Mon Feb 06, 2006 4:28 pm
Location: Uruguay
Contact:

Clase BarLib

Post by jose_murugosa »

http://hyperupload.com/download/021bdf8 ... b.rar.html

Aqui encontrarán la clase barlib con ejemplos y la poca documentación existente (pero suficiente) probada con xHarbour 0.99.60 , funcionando muy bien.

Espero esto ayude.
Saludos/Regards,
José Murugosa
FWH + Harbour + Bcc7. Una seda!
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Clase BarLib

Post by Enrico Maria Giordano »

I agree that Barlib is a wonderful barcode library and I use it since years. But please notice that it has some resource leakages. As an example, in banner.prg che command RELEASE is incorrectly used:

release ofont
release open

instead of

release font ofont
release pen open

EMG
User avatar
reinaldocrespo
Posts: 918
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Post by reinaldocrespo »

I've noticed that with barlib barcodes are not displayed when previewing. Bar codes work well only when creating the print job without PREVIEW.

Can someone confirm this?

Thank you,



Reinaldo.
User avatar
reinaldocrespo
Posts: 918
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Post by reinaldocrespo »

Mi amigo;

Thank you for your reply. BTW - congrats on the WC.

I went back and checked my code. Indeed I'm not using barlib, I'm using VRDBcode instead.

Has anybody been able to preview barcodes using the VRDBcode class?

Thank you,


Reinaldo.
User avatar
Slowfinger
Posts: 10
Joined: Fri Oct 07, 2005 5:57 pm
Location: Madrid
Contact:

Post by Slowfinger »

I could see a preview o the barcode but only when print 'one' barcode on the page.

I have modify also the VRDCODE class o fix a bug when print big size barcodes and add support for circular style barcodes.

If you are interest send me a email to send you a copy.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Santi,

Please upload it to www.hyperupload.com and post here the download url. Thanks :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Slowfinger
Posts: 10
Joined: Fri Oct 07, 2005 5:57 pm
Location: Madrid
Contact:

Post by Slowfinger »

Using VRDBCODE class if you want to do a preview of a report you must use oPrn:hDcOut instead oPrn:hDc when create the codebars.

Greetings.
Santiago Pérez.
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

thanks santiago, i try this :

Code: Select all

Function PrintBarCode()
Local oPrn
Local oBc6

printer oPrn preview
page

 oBC6 := VRDBarcode():New( oPrn:hDcOut , "12345678", 80, 80, 10, 10,2 )

   oBC6:lCircular:=.t.
   oBC6:ShowBarcode()


endpage

    endprint
   return nil

run ok but I want write the cCode on the center of the barcode ( HRC center ) or on the left / right (HRC radial) ?


Image

How I can make it ?


And if I want print only 180° of the barcode ?



Regards,
Best Regards, Saludos

Falconi Silvio
User avatar
Slowfinger
Posts: 10
Joined: Fri Oct 07, 2005 5:57 pm
Location: Madrid
Contact:

Post by Slowfinger »

Ok, I will implement the banner option also.

Create a 180º barcode could be a problem because I use solid circles to get a good barcode image. The arcs can't be easily fill with a color.

Perhaps a good solution it's to overwrite with a white rectangle the half of the circle to want to hide (top, bottom, left or right). I will do a test.
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

I sent you My test program .
Creating a 180° barcode you can use only black COLOR
YOu must give th epossibility to create option 90°, 180°, 270°, 360°

Yes the solution is good but you must write the code also on the center of barcode


there are many option you can make :
see this picture:
Image
Best Regards, Saludos

Falconi Silvio
areang
Posts: 128
Joined: Mon Jul 31, 2006 3:23 pm

Post by areang »

To : Ramesh

You sent me barlib, to my email.

Is that you mean the barlib on this forum ?

thank

Areang
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Post by RAMESHBABU »

Hi Areang
Is that you mean the barlib on this forum ?
Sorry!. I don't remember exactly.

- Ramesh Babu P
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply