Jump to content
We've recently updated our Privacy Statement, available here ×

subreports help !!!


Recommended Posts

By: Shiva Murali - shivva

subreports help !!!

2003-04-23 04:01

hi

 

i was wondering how to use the attribute "isStartNewPage" and "minHeightToStartNewPage".

 

My requirement is i want to print each subreport in a separate page.

 

my set up is like this. I have a master report and a detail report. The detail report has the group defined and the master report has the group querry.

 

Every thing is working fine except the new page concept. i am setting isStartNewPage attribute to true and minHeightToStartNewPage to 60 in the subreport. But i find that useless.

 

Am i doing any thing wrong.. any help please

 

Thanks

shiva

 

 

 

 

By: harikrishnan - harishharish

RE: subreports help !!!

2003-05-07 01:37

suppose u have five pages of reports then create 5 groups for each report.

On the each group header band,put a subreport tool and give the corresponding expressions.

i.e suppose u have page1,page2,page3

On the subreport tool properties choose datasource expression ,the text will be

new JREmptyDataSource(1)

and the subreport2 expression will be page1.jasper, before that u have to generate the jasper file for each page.

Then hide the GroupFooter band i.e make its height to 0.

same way do it for all the pages.Then it works fine.

 

if u have any doubt mail me hari.balakrishnan@polaris.co.in

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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