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

Help,how to create a jrxml not from iReport?


jacky

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

slaisne wrote:

Create a JasperDesign, add it JRBands and elements.
After compile and export to pdf

Hello,slaisne.

When I do as you said and the code is:

JRDesignExpression expression1 = new JRDesignExpression();

JRDesignExpressionChunk expression_Chunk1 = new JRDesignExpressionChunk();

expression_Chunk1.setText("res_id");

group.setExpression(expression1);

There poped an error:

net.sf.jasperreports.engine.JRException: Report design not valid :

1. Class not set for group expression : res_id

 

Can I get some help from you?Thanks a lot.

 

ohoh,it is ok.it should be:

expression1.addFieldChunk("res_id");

expression1.setValueClass(java.math.BigDecimal.class);

then it works.

Post edited by: jacky, at: 2006/12/11 06:17

Link to comment
Share on other sites

  • 3 months later...

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