Hi,
I have the following problems when exporting data to Excel and/or PDF from the Blazor grid control (all versions):
- If the grid is grouped (2 levels) with group and footer templated aggregates, it throws an error "Object reference not set to an instance of an object" on export (both PDF and Excel). I have to call Grid.ClearGroupingAsync() before exporting to clear the groupings to get any export - and cannot get an export with groups.
- I can add totals by creating a footer in Excel, but the cells in the footer do not respect any of the formatting settings (e.g. NumberFormat="N2").
- There seems to be no way to output multiple worksheets in Excel (e.g. to control the grouping through code).
- There seems to be no way to add totals or any other aggregates when exporting to PDF.
- In Excel it is necessary to manually set the formats and widths column by column or it becomes a complete mess (no auto-fit to column width for example).
Some of the properties of the objects seem to imply e.g. that it is possible to export multiple worksheets within one workbook, but I have been unable to get any of these things working.
I know you would like me to supply sample code to demonstrate the problem, but actually if you have working examples and/or documentation of the following that will be enough:
An example of exporting to Excel grouped, aggregated and formatted data.
An example of exporting multiple worksheets to one Excel workbook from the grid.
An example of an Excel export with a footer containing aggregates - with formatted numbers.
An example of a PDF export with a totals row at the bottom.
Many thanks,
Charles