Home
Analytics
page break help and pdf
SmokesMom
I have a report that renders fine with the following problem.
Occassionally, it will page break and part of the information for a row is on one page and the rest is on the next page. The report is landscape and is US Legal. The vertical alignment for the columns is Auto.
It consists of 14 columns - 4 alpha text the remaining with numerical data.
Sorry about the underscores - couldn't figure out how to space this table in his editor.
When the page break happens it looks like this...
End of first page...
CODE____COMPANY NAME__RVP NAME_____DIST DIR___NO.___NO.___etc.___etc.
ABC_____ABC Company____John Smith____Joe Black____74_____0_____0___1,079
________XYZ Company
top of next page...
CODE____COMPANY NAME__RVP NAME____DIST DIR___NO.___NO.___etc.___etc.
XYZ____________________John Smith____Jane Doe__20____100___32____1,001
I have trimmed all spaces from in front and after all alpha fields. The columns allow for wrapping if necessary.
Any help would be greatly appreciated.
Thank you,
Kris
Find more posts tagged with
Comments
mwilliams
Hi Kris,
What version of BIRT are you using and what are you wanting it to look like?
SmokesMom
Hi Michael,
We are using 2.3.2.
I need it to look like this...
CODE____COMPANY NAME__RVP NAME_____DIST DIR___NO.___NO.___etc.___etc.
ABC_____ABC Company____John Smith____Joe Black____74_____0_____0___1,079
XYZ_____XYZ Company____John Smith____Jane Doe____20____100___32___1,001
Notice in the original post, the last line on the page only contained the XYZ Company name. All the rest of the data for that row appeared in a new row on the new page.
Thanks for your reply.
Kris
mwilliams
Kris,
I can't say I've ever seen this happen. Do you think you could maybe reproduce the issue with the sample database or with a flat file data source? So I can see it break?
SmokesMom
Wow- I have my serious doubts. I can try, but it won't be for a while since I don't have a lot of time right at the moment. This is a fairly complex report (at least for my skill level
) with a couple of connection pools, and 3 datasets and 2 joint datasets, and some manipulation of totals.
Thanks,
Kris
mwilliams
Kris,
It wouldn't have to be with 5 dataSets. Just try to show the issue you're having. I've just never seen a single field drop to the next page from a given row while the others were printed on the previous page.
SmokesMom
I think I resolved this issue. This is a pdf and the page break interval was set to 50. I changed it to zero and that seemed to help although I don't know why having that set would cause it to page break with part of a row on one line and the rest on another. As long as it is fixed, I'm happy.
Thanks for your time,
Kris
mwilliams
Kris,
No problem. I'm with you. I still don't get why it split up a line in the page break and like I said before, have not seen this happen. Glad that the page break interval of 0 works for you. If you output the report to the web viewer and want to see the paging, you may have to write a small line of script to set it to 0 in PDF output only and 50 in HTML.
weijenli
Adding a comment about page break on PDF report.... Always use a "List" instead of a "Table." They have little difference (the only thing is you need an extra Grid for a List), but Lists handle page break better than Tables in PDF format. And remember to set page break interval to 0.
Weijen