In my ASP.NET Web-form Project I have an Event which Export Data (List<Profit>) to Excel . I'm using the old fashion way , writing to HTML file with .XLS extenstionmode
Profit Entity has some string properties which has numeric data like "100000561234"
When I export to Excel , Those Columns appear like 1.00001E+11 in Excel columns, So the user has to Right-Click on Excel column and change format-cell.
Any help appreciated
msoattributes that it puts on the cell to indicate the formatting (and declare the mso namespace at the top in the same way too) or you can switch to one of the Excel generation libraries in this question which will have support for formatting cells properly too.