Community
Participate
Working Groups
Created attachment 157954 [details] how it is now Hi, i have several issues with page break in PDF. As you can see in my attachment, there is a table with a header, and two detail rows. I set avoid page break after the header and after detail row 1. I set it to auto in detail row 2. It does not work. The headers and detail row 2 would partly fit on the first page, but it does a page break. If i have a text in detail row 2 which is about 2 pages long, it prints header group 1 on one page (and leaves the rest blank), header group 2 with detail row 1 on the next page (and leaves the rest blank) and detail row 2 on a third/fourth page. It always tries to avoid breaking the text in detail row 2 - until it has to because the text would be too long.
Created attachment 157958 [details] what it should look like...
i tried fixed and auto layout, the same behaviour. which would be the best??
(In reply to comment #2) > i tried fixed and auto layout, the same behaviour. which would be the best?? Can you try remove the "avoid page break" in both header and detail row 1?
Created attachment 159896 [details] auto pagebreak header and detail row 1 (pic1)
Created attachment 159898 [details] auto pagebreak header and detail row 1 (pic2) looks better. but the text from page 2 in pic1 should fit under "Information Meeting Minutes Capture", shouldn't it? still missing the avoid pagebreak in pic2 after "5.2 Next Meeting".
(In reply to comment #5) > Created an attachment (id=159898) [details] > auto pagebreak header and detail row 1 (pic2) > looks better. but the text from page 2 in pic1 should fit under "Information > Meeting Minutes Capture", shouldn't it? > still missing the avoid pagebreak in pic2 after "5.2 Next Meeting". DO you still have any "page break avoid" set in the report design? On the 2nd issue, do you want to have ""5.2 Next Meeting" starting on a new page instead of at the last line of the page?
1) i checked the xml-source. there was a hidden "page break avoid" which i set to auto, but it didn't change anything. So now there aren't any avoid-pagebreaks in the _whole_ report. 2) as you can see in pic1 there's a white space after 5.2. There the text from page 2 should start and auto-break at the end of the page. If this is not possible point 5.2 should start on the next page.
> 2) as you can see in pic1 there's a white space after 5.2. There the text from > page 2 should start and auto-break at the end of the page. If this is not > possible point 5.2 should start on the next page. I can see the issue in pic1. On pic2, after removing the page break avoid, ""5.2 Next Meeting" is the last line of the page. Are you wanting to have it on a new page?
please note that the inscription in pic1 is wrong, pic2 is correct! (there is 1 group header row (5, 5.1 ...) and 2 detail rows) there should be no page break between a subtitle (like 5.x -> "5.2 Next Meeting" here), the following subheader (here "Information Next Meeting") and the detailed description ("09/22/2009"). Also there should be no page break between Top title (1, 2, 3) and the following FIRST subtitle. hope it gets clear
Glad to know that pic2 is correct. So by removing the page-break-avoids, the report output is correct as shown in pic2. the issue has been resolved?
no, it's not resolved. my description (header row, detail row... the red text) in pic1 is wrong. the description in pic2 is ok.
(In reply to comment #11) > no, it's not resolved. my description (header row, detail row... the red text) > in pic1 is wrong. the description in pic2 is ok. In the report design that generates pic1, is there a page-break-avoid set to true on the table header or detail row?
(In reply to comment #12) > (In reply to comment #11) > > no, it's not resolved. my description (header row, detail row... the red text) > > in pic1 is wrong. the description in pic2 is ok. > > In the report design that generates pic1, is there a page-break-avoid set to > true on the table header or detail row? it's set in the header row: "After: avoid" if i set the first detail row to "After: avoid", 5.1 and the "Information ..." line is drawn to the next page and the text ".... bigger ...." is drawn on the next page, so there is a big white space.
so removing the page break avoid in the header row and detail row solve the problem, right?
(In reply to comment #14) > so removing the page break avoid in the header row and detail row solve the > problem, right? it will solve the problem that there's a big white space after "Information ...". but the problem from pic1 remains. I could send you the generated PDFs per mail...
(In reply to comment #15) > (In reply to comment #14) > > so removing the page break avoid in the header row and detail row solve the > > problem, right? > it will solve the problem that there's a big white space after "Information > ...". but the problem from pic1 remains. I could send you the generated PDFs > per mail... Is the problem in pic1 == "a big white space after "Information ..."? Is pict2 an BIRT output PDF file?
(In reply to comment #16) > (In reply to comment #15) > > (In reply to comment #14) > > > so removing the page break avoid in the header row and detail row solve the > > > problem, right? > > it will solve the problem that there's a big white space after "Information > > ...". but the problem from pic1 remains. I could send you the generated PDFs > > per mail... > > Is the problem in pic1 == "a big white space after "Information ..."? > > Is pict2 an BIRT output PDF file? both are PDF files. in pic1 the problem is the white space after "Information...". there the text from page 2 should begin and auto-break at the end of page 1
sorry, I am not sure I understand what the bug is. I understand there is issue with pic1. But it appears pic2 is ok. Is pic2 an output from BIRT? if so, what is the bug with pic2?
(In reply to comment #18) > sorry, I am not sure I understand what the bug is. > > I understand there is issue with pic1. But it appears pic2 is ok. Is pic2 > an output from BIRT? if so, what is the bug with pic2? pic2 is a BIRT output. I set "page break after: avoid" to the header "5.2 Next Meeting", but as you can see there's a page break...
If you want to keep the group in one page, you should set page-break-inside: avoid on the group. I'm clear what's your reqrirement, Could you please create a report design based on sample DB to show this issue?
Created attachment 174707 [details] The report design file
Created attachment 174708 [details] The datasource XML file
Hello, I have similar problems with page breaks, with BIRT 2.5.1 or BIRT 2.6.0. I have a table at the top of the report, which is a kind of header for it, and takes its data from an XML file. Below it I have a single Dynamic Text Field which takes HTML code as input. If the produced HTML output is longer than one page (it does not fit under the header in one page) then it is automatically moved to the next page. That leaves the header alone in the first page. I have tried to set Avoid page break wherever I could, but no change. How can I force the HTML content to break, instead of always breaking before it? I attach the report and the XML file used as its data source. Thanks for looking at it. Katerina
Created attachment 174713 [details] The produced pdf
(In reply to comment #23) > Hello, > I have similar problems with page breaks, with BIRT 2.5.1 or BIRT 2.6.0. I have > a table at the top of the report, which is a kind of header for it, and takes > its data from an XML file. Below it I have a single Dynamic Text Field which > takes HTML code as input. If the produced HTML output is longer than one page > (it does not fit under the header in one page) then it is automatically moved > to the next page. That leaves the header alone in the first page. I have tried > to set Avoid page break wherever I could, but no change. How can I force the > HTML content to break, instead of always breaking before it? I attach the > report and the XML file used as its data source. > Thanks for looking at it. > > Katerina Katerina, The issue you met has been reported in bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=323222