When I am using page break in subreport in detail panel,I am getting blank page extra .Please help me ..
6 Answers:
HI.. delete all the unnecessory bands which you are not using in report design i.e., from the main report as well from the subreport.
In which place are you placing subreport component in your main report ? In the subreport detail band we generally don't put page break as it breaks data for every single row with field headers.
I suggest you do the following...
In main Report:
* delete all the bands except summary.
* Keep your sub report element in summary band.
In sub report:
* delete all the bands and keep column header and detail band.
* drag and drop the fields which you want to detail band. ( The default text field names appear in column header)
* Drag and drop pagebreak component from palette to detail band. i.e, keep the page break just after all the fields on band line.
* Now check the out put.
Further you can do this :
* Click on page break(i.,e high light it with mouse) and go to properties of page break .
* Go to PrintWhenExpression and give condition.
* Condition could be $P{REPORT_COUNT}%2==0 or some thing like this which need your requirement.
NOTE: $P{REPORT_COUNT} is a pre-defined parameter provided by iReport.
If you are new to jasper follow my blog for basic concepts.
http://jasper-bi-suite.blogspot.in/
Thanks
I realize this is an old question but wanted to contribute my experience for others who may come across this as I did. In my case, I resolved the issue by simply selecting "Remove Line When Blank" for the page break element in question. Worked wonderfully, but YMMV as I'm a real neophyte when it comes to this software and maybe it's just dumb luck that it worked in my situation.
make all the details bands in which you are having subreports and your content to
Split Type <Default>
then at the last,
add an other detail band and add a page break in the newly added band.
minimize the newly added band in such a way that the band height is 1.
it will working. and is acting as split type prevent .
make all the details bands in which you are having subreports and your content to
Split Type <Default>
then at the last,
add an other detail band and add a page break in the newly added band.
minimize the newly added band in such a way that the band height is 1.
it will working. and is acting as split type prevent .