BARCODING, READING AND PRINTING USING FWH

Postby Slowfinger » Sat Jul 15, 2006 4: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).
User avatar
Slowfinger
 
Posts: 10
Joined: Fri Oct 07, 2005 5:57 pm
Location: Madrid

Clase BarLib

Postby jose_murugosa » Sat Jul 15, 2006 7: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 y el teclado y la IA!!"
User avatar
jose_murugosa
 
Posts: 1179
Joined: Mon Feb 06, 2006 4:28 pm
Location: Uruguay

Re: Clase BarLib

Postby Enrico Maria Giordano » Sat Jul 15, 2006 7: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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby reinaldocrespo » Mon Jul 17, 2006 6: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.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Postby Enrico Maria Giordano » Mon Jul 17, 2006 6:54 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby reinaldocrespo » Mon Jul 17, 2006 7: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.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Postby Slowfinger » 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.
User avatar
Slowfinger
 
Posts: 10
Joined: Fri Oct 07, 2005 5:57 pm
Location: Madrid

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Slowfinger » Wed Aug 16, 2006 7: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.
User avatar
Slowfinger
 
Posts: 10
Joined: Fri Oct 07, 2005 5:57 pm
Location: Madrid

Postby Silvio » Wed Aug 16, 2006 10:24 pm

thanks santiago, i try this :
Code: Select all  Expand view
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
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Slowfinger » Thu Aug 17, 2006 8: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.
User avatar
Slowfinger
 
Posts: 10
Joined: Fri Oct 07, 2005 5:57 pm
Location: Madrid

Postby Silvio » Thu Aug 17, 2006 9: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:
Image
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby areang » 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
areang
 
Posts: 128
Joined: Mon Jul 31, 2006 3:23 pm

Postby RAMESHBABU » Fri Aug 18, 2006 1:33 am

Hi Areang

Is that you mean the barlib on this forum ?


Sorry!. I don't remember exactly.

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby Antonio Linares » Fri Aug 18, 2006 6:08 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 32 guests