Jump to content

Printing report several times on a single report


naniivs

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Thanks for ur suggession but can u clearly tel me.

 

My problem is to get 2 copies of the same page in a single report. I used each page as subreport(i.e. 2 subreports) but all my detail content of the 1st page is printed ok but the detail content of the second page is not been printed.

 

I am passing JRCollectionDataSource as parameters to each subreports. And i think this datasource is reaching the end after the first report. and we need to reset the datasource.

 

I dont know if i am right.Can anyone please help me regarding this senario.

 

Thanks in advance

Link to comment
Share on other sites

When you pass a datasource to a subreport, the datasource gets exhausted as the subreport iterates over its data. If you want to use the same data for two subreport, you need to either create a fresh datasource for each or rewind the datasource after the first subreport.

 

HTH,

Lucian

Link to comment
Share on other sites

  • 5 years later...

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