How To Remove A Blank Page

When I am using page break  in subreport in detail panel,I am getting blank page extra .Please help me ..

rsuddhala's picture
325
Joined: Aug 16 2012 - 10:55pm
Last seen: 4 years 7 months ago

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 .

roshithasahukaru - 3 years 3 months ago

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.

 

sadakar's picture
4452
Joined: Aug 14 2012 - 3:57am
Last seen: 5 months 1 week ago

I had put include sub report in detail brand of main report and I want to break data for every single row.delete all the unnecessary bands. Even i am facing same problem.Thanks for replay

rsuddhala - 9 years 10 months ago

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 

sadakar's picture
4452
Joined: Aug 14 2012 - 3:57am
Last seen: 5 months 1 week ago

Thanks for comment. I have fallow your steps but I am getting empty page in last page .

rsuddhala - 9 years 10 months ago

Could you share some sample images of your report and out put so that I can help more ?

sadakar - 9 years 10 months ago

Thank you for giving me comments ..at last i found the answer my self..

rsuddhala - 9 years 10 months ago
show 1 more...

Oh..!!! Great...!!! Did you find something new in your requirement ? Could you post what you got ?

sadakar - 9 years 10 months ago

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

brossow's picture
175
Joined: Jan 16 2014 - 9:37am
Last seen: 2 years 9 months ago

I am using below method and it work for me.

Create one group and shift all your detail band information in group band.

select group band set the below property true the group band.

Start on New Page = check mark true

 

 

 

 

 

 

 

parasaniasandip's picture
Joined: Feb 6 2013 - 6:00am
Last seen: 1 year 8 months ago

If you are using sub report then create group and use the print when expression to eliminate extra loop.

parasaniasandip's picture
Joined: Feb 6 2013 - 6:00am
Last seen: 1 year 8 months ago

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 .

roshithasahukaru's picture
Joined: Dec 10 2019 - 12:37am
Last seen: 3 years 3 months ago
Feedback