Jump to content
Changes to the Jaspersoft community edition download ×

javabean and subreport


zhangliang7486

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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