Page 2 of 3

Posted: Sat Jul 15, 2006 4:29 pm
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).

Clase BarLib

Posted: Sat Jul 15, 2006 7:28 pm
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.

Re: Clase BarLib

Posted: Sat Jul 15, 2006 7:47 pm
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

Posted: Mon Jul 17, 2006 6:27 pm
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.

Posted: Mon Jul 17, 2006 6:54 pm
by Enrico Maria Giordano
No, I'm using Barlib and preview without problems.

EMG

Posted: Mon Jul 17, 2006 7:47 pm
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.

Posted: Wed Aug 16, 2006 10:00 am
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.

Posted: Wed Aug 16, 2006 11:20 am
by Antonio Linares
Santi,

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

Posted: Wed Aug 16, 2006 7:05 pm
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.

Posted: Wed Aug 16, 2006 10:24 pm
by Silvio
thanks santiago, i try this :

Code: Select all | Expand

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,

Posted: Thu Aug 17, 2006 8:39 am
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.

Posted: Thu Aug 17, 2006 9:42 am
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

Posted: Fri Aug 18, 2006 12:47 am
by areang
To : Ramesh

You sent me barlib, to my email.

Is that you mean the barlib on this forum ?

thank

Areang

Posted: Fri Aug 18, 2006 1:33 am
by RAMESHBABU
Hi Areang

Is that you mean the barlib on this forum ?


Sorry!. I don't remember exactly.

- Ramesh Babu P

Posted: Fri Aug 18, 2006 6:08 am
by Antonio Linares