Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomGroupBuilder.headerWithSubtotal() doesn't work when exporting to Excel (toXlsx or toXls) #87

Open
juan-diego opened this issue Jul 15, 2021 · 0 comments

Comments

@juan-diego
Copy link

juan-diego commented Jul 15, 2021

When exporting a report to Excel the grouping rows values are not printed when headerWithSubtotal() is set.

This issue can be reproduced with net.sf.dynamicreports.examples.group.GroupHeaderWithSubtotalReport example

Expected Behavior

When exporting to Excel I expect to see the grouping row values as they are printed in the PDF

image

Current Behavior

However when exporting to Excel (either toXlsx or toXls) the values are missed

image

Possible Solution

Just as hint... In example GroupHeaderWithSubtotalReport if line 77 is edited by removing .headerWithSubtotal() as follows

CustomGroupBuilder yearGroup = grp.group(new ExportReport.YearExpression()).groupByDataType();

Then the grouping rows values are printed

image

Steps to Reproduce (for bugs)

This can be reproduced just by replacing line 90 at GroupHeaderWithSubtotalReport

.show();

by

.toXlsx(export.xlsxExporter("export.xlsx"));

Context

This bug makes it no posible to have the grouping rows values printed together with the subtotals in excel files.

Your Environment

  • Version used: tested with 6.11.1 and 6.12.1
  • Java version being used: openjdk version "11.0.9" 2020-10-20
  • Operating System and version (desktop or mobile): macOS Big Sur 11.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant