Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BARCODE 128C & MS WORD

Status
Not open for further replies.

junkmail

Programmer
Jan 7, 2001
134
US
Can anyone tell me why word97 will not always display bar128c fonts correctly? If I use the same data in excel with the same exact barcode it works great but word seems to not handle all of the 128 characters accurately.I need to be able to print merge with word and one of my merge fields will be code 128c information any help would be great

Frank
 
Code128 is complicated an ususally requires a macro or program of some sort. There has to be a check digit calcualted and added to the barcode.
Are you sure there is not a macro or VBA code in the Excel sreadsheet running your barcode cell? DougP, MCP
 
Dougp,

I wrote the software that translates the numeric data to the barcode 128c format and then I use a windows true type font to display the actual barcode.All I do in excel is open a new spread sheet with the correct 128 codes and change the cell to the correct font. Word seems to do just fine in most cases but there seems to be some characters that are required for the 128 barcode the word does not translate correctly therefore making an bad barcode.

Frank
 
I'm trying to print Code128 barcodes in Crystal Reports...

Can you tell me what the algorithm is to calculate the check digit? Is it complicated?
 
Barcode1 is a great site for info on barcodes, and specifically for Code128 go to this page for the algorithm for the check digit. It's a modulo-103 method.


The other tricky part about Code128 is that there are 3 code sets in there, and you can switch between the codes at will. There are guidelines for constructing the shortest physical barcode for any input string. Ie, you can infact make more than one barcode for a string, they'll be legal and read OK, but not optimised for length necessarily. Jim Brown,
Johannesburg,
South Africa.
My time is GMT+2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top