export-csv
export-csv copied to clipboard
XLS export
Two things:
- It would be nice to add an option to enable/disable both csv and xls exporting individually via something like:
exporting: {
enabled: true,
csv: {
itemDelimiter: ',',
xlsEnabled: false
}
},
- The XLS exporting doesn't appear to be working correctly for me. I can't seem to view the generated output it in Numbers or upload to Google Drive for viewing:
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>Ark1</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><style>td{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";}</style><meta name=ProgId content=Excel.Sheet></head><body><table><tr><th>Category</th><th>Percentage of users</th></tr><tr><td>Yes, I am safe</td><td class="number">1</td></tr><tr><td>No, I am not safe</td><td class="number">0</td></tr><tr><td>Unreceived</td><td class="number">4</td></tr></table></body></html>
Running the above through an XML validator I'm notified that it's not valid XML.
Thoughts?