Jump to content
We've recently updated our Privacy Statement, available here ×

Barcode problems(2/5 )


shibinthomas

Recommended Posts

Hi All,

I need to create bar code in 2/5 format with '.' period should be set as a separator. Example data is  21348.075.016.40 1 

When i giving this value it throws erorr

 java.lang.RuntimeException: . is not a valid character for Standard 2 of 5 encoding

While using iReport 3.0.0 and also in 3.5.2 with barbecue

 

and barcode4j  -->

 

Error filling print... java.lang.IllegalArgumentException: Invalid character '. (-1)'. Expected a digit.
net.sf.jasperreports.engine.JRRuntimeException: java.lang.IllegalArgumentException: Invalid character '. (-1)'. Expected a digit.

 

Dose any one know how can i represent this data -> 21348.075.016.40 1 in 2/5 barcode format.

I am creating the barcodes for DHL Label Generation.

 

Thanks in Advance,

Shibin.

 

 

 

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

 

As for Wikipedia, an Interleaved 2 of 5 can encode only digits (numerical symbols).

http://en.wikipedia.org/wiki/Interleaved_2_of_5

The separators and the spaces make sense only for human reading, so if you want to put this text under the barcode, use a textfield, but you need to strip out that symbols from the string used to create the barcode.

Giulio

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...