hhurz / tableExport.jquery.plugin

jQuery plugin to export a html table to JSON, XML, CSV, TSV, TXT, SQL, Word, Excel, PNG and PDF
MIT License
984 stars 714 forks source link

Export strips cell content with number and leading "0" #370

Closed simonsolutions closed 10 months ago

simonsolutions commented 11 months ago

I have cell contents like that: "00367901234567890323", but exported is "36790123456789032300". That affects csv, txt, excel and pdf. I have no special code only the activation of the export plugin.

simonsolutions commented 11 months ago

When changing the cell content from plain numeric values to a string (e.g. by adding "x" at the end) the export works like expected.

hhurz commented 11 months ago

Please have a look at issue #103. There are also other old issues dealing with other export formats like #81, #156, #327 that can give you an idea how to solve yours.