[#3137] - net.sf.jasperreports.export.xls.break.after.row is not respected depending on value of IGNORE_PAGE_MARGINS

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

I have report with the attribute isTitleNewPage="true".
The report contains
- title with the only text field with parameter "net.sf.jasperreports.export.xls.break.after.row" set to "true"
- columnHeader and details sections

I'm exporting the report to the xls format with IS_ONE_PAGE_PER_SHEET="false" and expecting the report contains 2 sheets: one sheet for title and 1 sheet for the table with data.

When the report is exported with IGNORE_PAGE_MARGINS="false" everything is fine - xls contains 2 sheets.
But when IGNORE_PAGE_MARGINS="true" - xls contains only 1 sheet, which looks unexpected and seems to be a bug.

I have attached simplified code (maven project) to reproduce the problem.
Simply launch run.bat, it generates 2 xls files with self-describing names: "fail 1 sheet - title on new page & ignore margins.xls" and "ok 2 sheets - title on new page & keep margins.xls"

AttachmentSize
Package icon ignore_margins_title_new_page.zip2.54 KB
v5.2
drwho's picture
5
Joined: Mar 14 2013 - 8:15pm
Last seen: 8 years 11 months ago
Feedback