How to show long numbers in Excel?

后端 未结 5 1550
太阳男子
太阳男子 2020-12-14 22:57

I have to build a C# program that makes CSV files and puts long numbers (as string in my program). The problem is, when I open this CSV file in Excel the numbers appear like

5条回答
  •  天涯浪人
    2020-12-14 23:33

    When I generate data to imported into Excel, I do not generate a CSV file if I want control over how the data are displayed. Instead, I write out an Excel file where the properties of the cells are set appropriately. I do not know if there is a library out there that would do that for you in C# without requiring Excel to be installed on the machine generating the files, but it is something to look into.

提交回复
热议问题