Error with file format and extension on export to Excel v5
dotnetshadow opened this issue · 1 comments
dotnetshadow commented
Hi there,
Great Library, when exporting to xls using exportButtons false, I seem to be getting the error message:
The file format and extension don't match
Using library v5.0.2, running localhost
var instance = $('table').tableExport({
formats: ['xls'],
exportButtons: false,
filename: 'File1'
});
var exportData = instance.getExportData()['tableexport-1']['xls'];
instance.reset();
instance.export2file(exportData.data, 'application/vnd.ms-excel', exportData.filename, exportData.fileExtension);
clarketm commented
@dotnetshadow – Do you get the same error when you remove instance.reset();
?