zhangliang7486 Posted July 2, 2009 Share Posted July 2, 2009 Now I encounter a strange problem.I want to use javaBean as my datasource.And I must use subreport but the result can not show with the javabean datasource.If the javabeanDatasource is not compatitable to subreport.Because it can display when I use jdbcConnection. Link to comment Share on other sites More sharing options...
shibinthomas Posted July 2, 2009 Share Posted July 2, 2009 It is compatitable. From the Report Query window u may find JavaBean Datasource tab using this u can read attributes from bean class . before reading attributes u need to add that class (jar including bean to ireport classpath. in ireport 3.5.2 Tools->Options-> tab claspath and restart ur ireport ). Then this beans attributes will be available as ireport fields. Using this fields u can create report. try this way Regards Shibin Link to comment Share on other sites More sharing options...
zhangliang7486 Posted July 3, 2009 Author Share Posted July 3, 2009 Thank you for your suggestion.But It still cannot display the result.I want to use javabeandataSource as dataSource in subreport and main report.When I use jdbcConnection ,it can show the result .But the javaBeandataSource cannot show the results. 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