C
Carl Mercier
Hi!
I have written a little class in .NET to convert a DataTable or a
dataView to a comma-delimited text file. This file eventually gets
imported in Excel or Word.
Everything works great, I handled commas and quotes and Excel reads my
files correctly. I have one little problem, though... If a field in the
datatable has a carriage return in it, it gets written to the text file
(of course) and Excel things it's the start of a new record.
Is there a special character I can replace the CR with so Excel knows
that it is not a new record but a CR inside a field?
Thank you!
Carl
I have written a little class in .NET to convert a DataTable or a
dataView to a comma-delimited text file. This file eventually gets
imported in Excel or Word.
Everything works great, I handled commas and quotes and Excel reads my
files correctly. I have one little problem, though... If a field in the
datatable has a carriage return in it, it gets written to the text file
(of course) and Excel things it's the start of a new record.
Is there a special character I can replace the CR with so Excel knows
that it is not a new record but a CR inside a field?
Thank you!
Carl