xuyun Posted August 16, 2006 Share Posted August 16, 2006 some parameters need to be passed as constants to fill the cross header.but:net.sf.jasperreports.engine.JRException:ÂReportÂdesignÂnotÂvalidÂ:Â ÂÂÂÂÂ1.ÂParameterÂnotÂfoundÂ:Âsecond_year ÂÂÂÂÂ2.ÂParameterÂnotÂfoundÂ:Âfirst_year ÂÂÂÂatÂnet.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:266) ÂÂÂÂatÂnet.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:143) ÂÂÂÂatÂnet.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105) ÂÂÂÂatÂnet.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127) ÂÂÂÂatÂnet.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109) ÂÂÂÂatÂit.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:478) ÂÂÂÂatÂjava.lang.Thread.run(UnknownÂSource) Link to comment Share on other sites More sharing options...
lucianc Posted August 24, 2006 Share Posted August 24, 2006 If you want to use report parameters inside a crosstab, you'd need to pass it as a crosstab parameter:Code:<crosstabParameter name="first_year" class=".."> <parameterValueExpression>$P{first_year}</parameterValueExpression></crosstabParameter> HTH,Lucian Link to comment Share on other sites More sharing options...
xuyun Posted August 25, 2006 Author Share Posted August 25, 2006 Thanks, it works, although I don't understand why use crosstabParameter to adapt parameter(sounds like global variable and local variable).And iReport not support yet. Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted August 25, 2006 Share Posted August 25, 2006 You can define crosstab parameters selecting the crosstab element and opening the element properties dialog. Giulio 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