Save an excel file to a csv file in C# code

前端 未结 3 1821
遇见更好的自我
遇见更好的自我 2020-12-06 18:09

I want to open an excel file and save it as a csv file. Google search no lucky. I need C sharp code to do it.

Thanks for your nice help.

3条回答
  •  遥遥无期
    2020-12-06 18:17

    You could use Visual Studio Tools for Office or ADO.NET to do this.
    For more compatibility I suggest you to use the second one: take a look at some tutorials like David Hayden's one to learn how to use it.

    To create a CSV file you have just to read the Excel data and write the results to a file using the structure written in Wikipedia.

提交回复
热议问题