Jump to content
Changes to the Jaspersoft community edition download ×

Data Identifiers within Barcode values


2004 IR Help

Recommended Posts

By: Tim Slavin - tjslavin

Data Identifiers within Barcode values

2004-08-04 10:42

We need the ability to insert Data Identifiers(static text) with our Barcode values. Any ideas or thoughts on how one could do this?

 

 

 

 

By: Tim Slavin - tjslavin

RE: Data Identifiers within Barcode values

2004-08-04 11:25

Forgot to mention earlier that we are running ontop of the 0.3.2 version of the iReport application. We would like the scanned value of barcode to be as follows: -DI-barCodeValue.

Example: -K-ProductNumber

 

Any help would be greatly appreciated.

 

Thanks in advance.

 

 

 

 

 

By: Giulio Toffoli - gt78

RE: Data Identifiers within Barcode values

2004-08-05 06:16

Use textfields instead a static text, and put a "static" expression like

 

"123456"

 

Giulio

 

 

 

 

By: Tim Slavin - tjslavin

RE: Data Identifiers within Barcode values

2004-08-05 07:39

First off I apologize for the length of this post:

 

The values for the barcodes need to be a string complying to the following format "-DI-value". Example: "-K-123456" would be used for the scanned value of a product number of "123456". The "K" is simply a data identifier which our logic uses to determine that we have just received a Product Number whose value is "123456".

 

In the example provided "123456" is a dynamic value supplied by a Report Variable titled VHMFNO. If we specify a Barcode Expression of

"-K-"+$F{VHMFNO} it fails to compile with the following exceptions being thrown.

 

dori.jasper.engine.JRException:?Errors?were?encountered?when?compiling?report?expressions?class?file: D:iReport-0.3.2MOTraveler.java:397:?unclosed?string?literal ????????????????value?=?(java.awt.Image)(it.businesslogic.ireport.barcode.BcImage.getBarcodeImage(5,""-K-"+((java.lang.Double)field_VHMFNO.getValue()) ?????????????????????????????????????????????????????????????????????????????????????????????????????????^ D:iReport-0.3.2MOTraveler.java:398:?unclosed?string?literal ",true,false)); ^ D:iReport-0.3.2MOTraveler.java:399:?')'?expected ????????????????break;

 

However if we specify a Barcode Expression of

$F{VHMFNO} + "-K-" it compiles fine and generates a barcode whose value is "123456-K-".

 

Which is exactly the oppposite of what we need. Just wanted to bring this to someones attention.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...