| |
   
Morovia.com Home | Fonts | Components | Labeling | Library | Order | Forum
  Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Software Solutions
 Community Forum : Software Solutions
Subject Topic: Differences between functions-Code128Auto Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
lkhaas
Newbie
Newbie


Joined: April 24 2006
Location: United States
Posts: 4
Posted: July 28 2006 at 8:03am | IP Logged Quote lkhaas

We are using the 128 barcodes and have some confusion as to the encoding functions.  From the descriptions it would seem that you could always use Code128Auto function since it automatically switches to the right character set, but in practice we find that submitting numerical values to both the Code128C functions and Code128Auto functions return different results (even on the Web Beta on Morovia's website). 

Why does this happen and when should one really use the Code128Auto function?

Thanks for clearing this up.

Back to Top View lkhaas's Profile Search for other posts by lkhaas
 
glitch
Admin Group
Admin Group
Avatar

Joined: January 25 2003
Location: Canada
Posts: 280
Posted: July 28 2006 at 9:34am | IP Logged Quote glitch

Code128 standard defines three sub character set - A, B and C. In theory, the encoder should be able to select the character set based on the data and switch from one to another. However, when doing that, you lose the human readable of each charcter, since the human readable is tied to the character set.

Code128C only encodes numeric data with even-length. It achieves the best length by combining two adjacent digits into one character. On the contrary, Code128Auto has to determine the character set one by one, therefore it does not always produce the best results. Although you get different barcodes, the decode result is the same. - i.e. the same data can have different code128 representations.

If you always encode even-length numeric data, just use Code128C. This is also the most widely used scenario, because it produces the shortest barcode. However, if you are enconding mixed data, you have to use Code128Auto (or Code128Ex).



Edited by glitch on July 28 2006 at 9:35am
Back to Top View glitch's Profile Search for other posts by glitch Visit glitch's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.3438 seconds.