jacky Posted December 7, 2006 Share Posted December 7, 2006 Hello,everyone,I want to create a jrxml from programming without using iReport.Now,What can I do?What classes in the jasperReport jar can I use?Thanks to any reply.Best regards. Link to comment Share on other sites More sharing options...
slaisne Posted December 8, 2006 Share Posted December 8, 2006 Create a JasperDesign, add it JRBands and elements.After compile and export to pdf Link to comment Share on other sites More sharing options...
jacky Posted December 8, 2006 Author Share Posted December 8, 2006 slaisne wrote:Create a JasperDesign, add it JRBands and elements.After compile and export to pdfslaisne,thank you a lot.I will try then. Link to comment Share on other sites More sharing options...
jacky Posted December 11, 2006 Author Share Posted December 11, 2006 slaisne wrote:Create a JasperDesign, add it JRBands and elements.After compile and export to pdfHello,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 More sharing options...
agassi Posted March 17, 2007 Share Posted March 17, 2007 Post edited by: agassi, at: 2007/03/27 10:03 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now