Skip to Content
0
Sep 15, 2020 at 06:11 AM

Spreadsheet Control is not formatting numbers correctly

63 Views Last edit Sep 25, 2020 at 07:17 AM 4 rev

Hi Experts,

I am using Spreadsheet control in my application to export table data into Excel sheet. However in the exported excel sheet, the column type is not formatted properly. It should have been Number for all rows, but in some rows it is General and this is creating issues while performing arithmetic calculations.

Please find below the snapshot for the exported excel. The first and third row is formatted as "General" while the second row is formatted as "Number" and hence the sum and average is not calculating correctly in the footer.

excel-export.jpg

Could you please let me know if anyone has face similar issue or knows the solution to resolve the issue.

Please find below the JSFiddle for the issue.

https://jsfiddle.net/c178fzev/

Thanks,

Sanjay Aswani

Attachments

excel-export.jpg (80.3 kB)