Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Unwanted pagebreak in PDF only
Rugtved
Dear community
I have this strange problem, where I get an unwanted pagebreak when output is PDF but not when it is e.g. Word.
The report consists of three tables layered inside each other where the two outer tables are used for grouping only and parameter bound to each other, like this:
CostumerGroup
-> TypeGroup (bound to customer)
->-> Detail (bound to Type, Customer)
Now; I only want the Customer to appear the first time, and not repeat on each page, so I have set it to:
Page Break before: Always excluding First (to make it always start on at new page)
Repeat Header: off
The problem is, that with this setting, the first occurence of customer is on a separate page, while the following appears correct, but only for PDF output.
When output is MS Word, it shows correct.
When Repeat Header: On, the behaviour is correct for PDF as well.
I have tried various stuff such as setting pagebreak = "Avoid" in script for the group, but to no avail.
While I'm struggling to make an example of this with the Classic Models datasource, I would like to hear if any of you have had a similar experience?
I'm using version 2.5.0.
Best regards
Steffen
Find more posts tagged with
Comments
mwilliams
Hi Steffen,
Can you attach the PDF or a screenshot of the issue? If you can get this recreated with the sample database, that'd be great. If not, can you attach your report design so I can see if there are any setup issues I see that could cause this? Thanks.
Rugtved
Hi,
I am struggling to reproduce the problem with the sample database. If that fails or takes too much time, I will post the design.
Unfortunately, I cannot post report samples since it's confidential customer data.
I will post something before the weekend.
Thanks for looking into this,
Steffen
mwilliams
Steffen,
Sounds good!
Rugtved
I think I have been able to reproduce the problem with the sample database.
It is not entirely the same behaviour since with this design I get an unwanted pagebreak after every new group in the outermost level where in my design it only occurred the first time.
I have attached the design and the corresponding word and PDF documents, where the difference should be clear.
I look forward to a possible explanation.
Best regards
Steffen
mwilliams
Steffen,<br />
<br />
I see what you're saying. I've tried several things to get it to output in the expected manner and have not been able to do so with my quick testing. Please log a bug for this at <a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/reportabug.php'>BIRT
: Reporting Bugs and Requesting Enhancements</a>.
Rugtved
Bug reported: <a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=295289'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=295289</a><br
/>
<br />
Thanks for helping me look into this.<br />
<br />
Steffen
Rugtved
The issue is now resolved:
"In birt 2.5.0, The table row is page-break-inside: avoid by default. In this
case, user should set the detail row of the outer tabble to page-break-inside:
auto explicitly. Then the Unwanted pagebreak should dispear."
This means that even though the page-break-inside appears to be auto, you need to set it to this (I set to avoid, saved and then set to auto). I still regard this behaviour as a bug, but it solved the problem.
Steffen