Convert CSV into XLS

后端 未结 5 1378
孤城傲影
孤城傲影 2020-12-29 15:25

I\'m working in a web application separated in blocks and I\'m getting a CSV object from a work mate of mine which I must convert into XLS to be passed into an Excel Process

5条回答
  •  甜味超标
    2020-12-29 16:03

    Does the output need to be in the legacy XLS format? If XLSX is acceptable, EPPlus is a great .NET library for writing spreadsheets. The older excellibrary can produce XLS files.

    Only a few lines of code should be necessary for parsing the CSV file (just be careful of double quotation marks) and writing the output spreadsheet.

提交回复
热议问题