I'm working with VB.Net.
I have imported some data into the Data Set.
I have four columns of data.
[Column 1]This is a test[/Column 1]
[Column 2]This is a comma, Test.[/Column 2]
[Column 3]This is a double quote " test.[/Column 3]
[Column 4]This is a comma, quote " test.[/Column 4]
* Ignore the Pseudo-Tags, they're just to show column start/end:
I want to export this Data Set Table to a CSV.
I want to maintain cell/column integrity.
I am using Double Quotes around my "cell contents" to delineate text.
This works just fine.
When I open the file with notepad, it looks like this:
"This is a test","This is a comma, Test.","This is a double quote " test.","This is a comma, quote " test."
No problem there. Looks good.
HOWEVER:
When I open the file with Excel, I get this:
[Column 1]This is a test[/Column 1]
[Column 2]This is a comma, Test.[/Column 2]
[Column 3]This is a double quote test."[/Column 3]
[Column 4]This is a comma, quote test."[/Column 4]
Note that the Double quotes in Column three and four have disappeared, and the ending double quotes have been left visible, rather than being ignored as part of a delineater string of [","]...
So, how would you handle this?
btw: I can't export to Excel, as the user may not have excel installed. It must be to a CSV.