| Summary: | PageBreakInside : Avoid does not work with Word output | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | sebastien.dsf | ||||||
| Component: | BIRT | Assignee: | Birt-ReportEngine-inbox <Birt-ReportEngine-inbox> | ||||||
| Status: | REOPENED --- | QA Contact: | Xiaoying Gu <bluesoldier> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | bluesoldier, h.vonbargen, hustlg, jouyang, knell, shcampbell7, vladk.dev, zersaa | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
sebastien.dsf
Created attachment 199035 [details]
A test case to show differences between PDF and Word output
Page break avoid is not supported by Word. Exporting doc directly will output all content as a single page, in word, the page break is actually generated by Word but not by report engine. User can export doc from web viewer to avoid this problem in this special case, because the page break will be generated by report engine. However, Word will break page by itself if the contents in 1 word page exceeds the size of word page. It is not under control of report engine, so BIRT is not able to guarantee page break avoid to work in word. (In reply to comment #2) > Page break avoid is not supported by Word. How about "Keep with next" (page break AFTER avoid) and "Keep lines together" (page break INSIDE avoid) ? Vdemin, That sounds like a good solution. Thanks, we will try to use it. I've seen very similar behavior on a crosstab with two rows. I set PageBreakInside to "avoid" on both the crosstab and its rowarea, but I can still get a two row crosstab split across two pages. This happens in Word only, not in pdf. I'll attach a sample report that shows this. (In reply to comment #6) > I'll attach a sample report that shows this. Well, it won't let me add an attachment, but I have an example if anyone wants to see it. (In reply to comment #7) > (In reply to comment #6) > > I'll attach a sample report that shows this. > > Well, it won't let me add an attachment, but I have an example if anyone wants > to see it. Scott, please attach your example, thanks. Created attachment 201332 [details]
Rptdesign shows crosstab page break error
Any update on this? Scott, As we didn't get time to fix it in 3.7.1, it will be fixed in 3.7.2. Great! 3.7.2 will probably be released around Spring of next year, correct? Any news on this? Still not fixed with version 4.2. The page break also doesn't work with odt files, does it? Anyone alive ? :/ We could really need this feature, because without it, Word and ODT documents aren't really usable for our project. (page breaks happen in midst of tables that should print on a single site, small text passages with a pagebreak in between, pagebreak in midst of a table cell!) Isnt't it possible to do this similar to the solution for pdf files? Could someone at least tell me the locations of the current implementation of this feature in pdf files, so that I can look into this myself a bit? Currently page-break-inside: aovid is not supported in "viewing report in DOC". This feature is supported in "exporting to DOC", view report in web viewer, and export as doc format. For everyone with this problem, here is the workaround when using the java api: http://www.eclipse.org/forums/index.php/m/909451/ (In reply to Tobias Knell from comment #16) > For everyone with this problem, here is the workaround when using the java > api: http://www.eclipse.org/forums/index.php/m/909451/ The proposed solution splits a single table into many smaller tables, one per page, that makes further editing of the generated document cumbersome. You would have to move rows between tables manually. The problem persists in BIRT 4.3.1 for DOC and DOCX formats. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=423347 I created a patch which solves this (at least if pageBreakInside="avoid" is specified at the row level), see https://bugs.eclipse.org/bugs/show_bug.cgi?id=433725 My version on https://github.com/hvbtup/birt should support this for DOCX and DOC. |