Hello,
I'm currently trying to export an excel file from a grid with a custom filename. Everywhere I look the go-to suggestion is to use the
ExcelExportEvent
and
e.workbook.fileName
to update the file name. This doesn't appear to work anymore. Looking into the source code I found the following lines trying to save a file:
saveFile(options) {
toDataURL(options).then((dataURL) => {
saveAs(dataURL,
this
.fileName, {
forceProxy:
this
.forceProxy,
proxyURL:
this
.proxyURL
});
});
}
This clearly indicates that this.fileName is used, which is initialized once to "Export.xlsx" and then never read back from the event again.
Is this intended behaviour? If so, has the ability to override the export name completely been removed?
Best Regards
Philipp