fingers10 / ExcelExport

Classes to generate Excel/CSV Report in ASP.NET Core
MIT License
49 stars 22 forks source link

How can I escape a comma in data csv file? #10

Open Vijaykumarj opened 2 years ago

Vijaykumarj commented 2 years ago

Hi, I wrote a script to create a CSV file which uses CSVResult. So, the output should be 'pretty' (data displayed in separate columns). All is well but data splits when there is a 'comma' within the data. I was appended the data within the double quotes and tried with different ways even though data splits in Microsoft excel. Is there anyway workaround solution for this ?

PFA screenshot for your reference.

image