bob007 Posted April 20, 2009 Share Posted April 20, 2009 Hi, I'm making my reports programmaticly with JasperDesign.Unfortunatly, I can't find any example about making a chart report programmaticly ?Is there any example about that ? Like how to set the keyExpression and the valueExpression ? Thanks,Philippe Post Edited by bob007 at 04/20/2009 19:25 Link to comment Share on other sites More sharing options...
lucianc Posted April 21, 2009 Share Posted April 21, 2009 JasperReports doesn't include any sample code that does this. However, you can look into the sources of net.sf.jasperreports.engine.xml.JRXmlDigesterFactory, follow the digester rules applied to certain JRXML patterns and see the calls the JR makes internally when parsing a JRXML.For instance, searching for keyExpression reveals that this expression is set by calling net.sf.jasperreports.charts.design.JRDesignPieSeries.setKeyExpression.Regards,Lucian 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