FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour BARCODING, READING AND PRINTING USING FWH
Posts: 10
Joined: Fri Oct 07, 2005 05:57 PM
BARCODING, READING AND PRINTING USING FWH
Posted: Sat Jul 15, 2006 04:29 PM

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).

Posts: 1279
Joined: Mon Feb 06, 2006 04:28 PM
Clase BarLib
Posted: Sat Jul 15, 2006 07:28 PM

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

"Los errores en programación, siempre están entre la silla, el teclado y la IA!!"
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Clase BarLib
Posted: Sat Jul 15, 2006 07:47 PM

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

Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
BARCODING, READING AND PRINTING USING FWH
Posted: Mon Jul 17, 2006 06:27 PM

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.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
BARCODING, READING AND PRINTING USING FWH
Posted: Mon Jul 17, 2006 06:54 PM

No, I'm using Barlib and preview without problems.

EMG

Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
BARCODING, READING AND PRINTING USING FWH
Posted: Mon Jul 17, 2006 07:47 PM

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.

Posts: 10
Joined: Fri Oct 07, 2005 05:57 PM
BARCODING, READING AND PRINTING USING FWH
Posted: Wed Aug 16, 2006 10:00 AM

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.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
BARCODING, READING AND PRINTING USING FWH
Posted: Wed Aug 16, 2006 11:20 AM

Santi,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10
Joined: Fri Oct 07, 2005 05:57 PM
BARCODING, READING AND PRINTING USING FWH
Posted: Wed Aug 16, 2006 07:05 PM

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.

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
BARCODING, READING AND PRINTING USING FWH
Posted: Wed Aug 16, 2006 10:24 PM
thanks santiago, i try this :
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) ?




How I can make it ?


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



Regards,
Best Regards, Saludos



Falconi Silvio
Posts: 10
Joined: Fri Oct 07, 2005 05:57 PM
BARCODING, READING AND PRINTING USING FWH
Posted: Thu Aug 17, 2006 08:39 AM

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.

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
BARCODING, READING AND PRINTING USING FWH
Posted: Thu Aug 17, 2006 09:42 AM
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:
Best Regards, Saludos



Falconi Silvio
Posts: 128
Joined: Mon Jul 31, 2006 03:23 PM
BARCODING, READING AND PRINTING USING FWH
Posted: Fri Aug 18, 2006 12:47 AM

To : Ramesh

You sent me barlib, to my email.

Is that you mean the barlib on this forum ?

thank

Areang

Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
BARCODING, READING AND PRINTING USING FWH
Posted: Fri Aug 18, 2006 01:33 AM
Hi Areang

Is that you mean the barlib on this forum ?


Sorry!. I don't remember exactly.

- Ramesh Babu P
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
BARCODING, READING AND PRINTING USING FWH
Posted: Fri Aug 18, 2006 06:08 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com