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"