Barcode 128

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Barcode 128

Postby KHentschel » Thu Oct 04, 2007 10:38 am

Dear Hotline,

i want to print a Barcode 128. The Barcode has a Data Identifier that have to be in the Barcode but NOT in the readable Text below of the Barcode. How i must create the String?

Best regards

Klaus Hentschel
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am

Postby IDEAL Software Support » Thu Oct 04, 2007 4:40 pm

Please be more specific:

What version of VPE are you using?

Can you explain, what "Data Identifier" means exactly?

Do you wish to create EAN-128 or Code-128?

Please provide a sample string.

Shall the whole string be invisible, or only part of it?

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1625
Joined: Thu Nov 18, 2004 4:03 pm

Postby KHentschel » Thu Oct 04, 2007 5:19 pm

Hello,

i use the newest VPE 4 Engine as a Demo and want to decide if the Engine is the right product for us.

I want to print a Code128 Barcode. The first 2 Characters '1J' shall be the Data Identifier and has to be printed in the Barcode but not in the Text below.

Sample

lcCode128Str = '1J' + 'UN ' + PADL(lcDUNSno,9,'0') + ' ' + lcPackageNo
THISFORM.vpe1.barcode(lnLeftMargin + 1,lnTopMargin + 8.2,lnLeftMargin + 13.3,lnTopMargin + 10.2,26,lcCode128Str,'')

Another question: Can i affect the Text Format below the Barcode? Now it is very small.

Best regards
Klaus Hentschel
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am

Postby IDEAL Software Support » Fri Oct 05, 2007 2:49 pm

Parts of the barcode text can not be hidden. I was unsure, if you wanted to insert FNC control codes.

The font type and font size can be specified as you do for normal text objects, for example with the method SetFont().

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1625
Joined: Thu Nov 18, 2004 4:03 pm

Postby KHentschel » Fri Oct 05, 2007 2:54 pm

Hello Mr. Radde,

i understand that parts of the text can not be hidden. Is it possible to hide the whole text? than i can print a text below for my own.

Best regards

Klaus Hentschel
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am

Postby IDEAL Software Support » Fri Oct 05, 2007 4:44 pm

Yes, the text can be hidden by setting VPE.BarcodeMainTextParms = BCP_HIDE.

Please see the documentation for all the details about barcodes.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1625
Joined: Thu Nov 18, 2004 4:03 pm

Postby KHentschel » Fri Oct 05, 2007 5:33 pm

Thank you very much. Now everything looks fine.

One last question:

In your documentation i read for the Code128

Checkdigit

The use of a checkdigit is required. The barcode library can generate it automatically.

But where i say the Lib. when to generate?
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am

Postby IDEAL Software Support » Sat Oct 06, 2007 5:35 pm

You find everything in the manual / reference in the section "Barcodes 1D". See the property BarcodeAutoChecksum.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1625
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 64 guests