PDF export of report with grid doesn't work correctly if cell is broken across two pages [message #1061120] |
Thu, 30 May 2013 07:09 |
Bianca D. Messages: 17 Registered: February 2013 |
Junior Member |
|
|
This topic has been discussed in a thread before but due to a problem with the forum it is unaccessible now and had to be deleted. So I'll open a new thread and try to find a solution.
I'm trying to build a report that uses dynamically created grids. All created grids use rowspan to display them more nicely (the other cells are dropped correctly).
When I export the report as html, everthing looks perfect, all grids are correct. When I use the pdf export, some grids have several mistakes (rowspan to low, cells devided etc.). I tried to export again, but the report looks exactly the same, with the same broken grid.
It appears, that the grid breaks because of a grid cell that is broken across two pages (due to long cells). I tried to avoid that by setting the PageBreakInside for the cells to "avoid", but it doesn't work.
This bug first occured in version 4.2.1 but it's still the same in 4.2.2. I reported a bug a while ago, but nothing seems to happen. This bug is critical and might force me to switch to a different report engine though I really like BIRT.
Is there any way I could fix this? Currently I use the border settings to immitate the rowspan and that works ok, but doesn't look very nice if you reach the end of the page and the cell is broken to the next page.
Any ideas? I would really appreciate any help I can get!
Best regards,
Bianca
The link to the reported bug: Link
|
|
|
|
|
|
Re: PDF export of report with grid doesn't work correctly if cell is broken across two pages [message #1064389 is a reply to message #1063983] |
Wed, 19 June 2013 05:05 |
|
Bianca,
Hopefully your bug will be dealt with soon. In the meantime, have you thought of trying the same by putting your data into a dataSet and using a table to see if you can get better results or even trying to build the table using HTML in a HTML text box as a workaround? I know these aren't ideal solutions, but they might be something to try until something is worked out with the bug. Also, you could try a stable build of the 4.3 release, which is scheduled to release next week. It's likely no different since it's not noted in the bug, but you never know!
Michael
Developer Evangelist, Silanis
|
|
|
|
Re: PDF export of report with grid doesn't work correctly if cell is broken across two pages [message #1064785 is a reply to message #1064611] |
Fri, 21 June 2013 06:27 |
|
I've done something similar to what you're talking about. You would have to calculate the number of rows you've gone down the page as you go, then check the current row to see if it'll fit based on your calculation. I've also done something like splitting the data up into rows that work better with the page using a scripted dataSet to break up my long data. What format is the data in when you get it? From the sounds of it, you'd likely end up using a scripted dataSet. There are several examples of scripted dataSets in the BIRT Exchange devShare. Utilizing a dataSet might also allow you to use grouping rather than merging grid cells. That might fix the issue without having to do anything extra, like discussed above. Let me know if you have further questions.
Michael
Developer Evangelist, Silanis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06287 seconds