How To Remove A Blank Page

0

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

rsuddhala's picture
Joined: Aug 16 2012 - 10:55pm
Last seen: 9 months 3 weeks ago

5 Answers:

0

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
624
Joined: Aug 14 2012 - 3:57am
Last seen: 5 months 2 weeks 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 - 6 years 6 days ago
0

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
624
Joined: Aug 14 2012 - 3:57am
Last seen: 5 months 2 weeks ago

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

rsuddhala - 6 years 5 days ago

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

sadakar - 6 years 5 days ago

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

rsuddhala - 6 years 5 days ago
show 1 more...

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

sadakar - 6 years 5 days ago
0

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
31
Joined: Jan 16 2014 - 9:37am
Last seen: 1 year 6 days ago
0

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 5 months ago
0

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 5 months ago
Feedback