I have multiline-text box in my C# application.
User enter text into the multiline-text box, and without completing the
whole line, user press Enter Key and go to the next line, by leaving the
'\n'(new line character) in the string.
I use this text to write to a database field and then write that field to an
excel file.
The string is not writing to a single line as it has the carriage return
('\n), wraps the text into the next line in the excel spread sheet. This make
my excel report inconsistance.
Does anyone knows how to fix this?
I appreciate any ideas
thanks
raj
Peter van der Goes - 11 Nov 2004 13:16 GMT
> I have multiline-text box in my C# application.
>
[quoted text clipped - 14 lines]
>
> raj
Save the contents of your multiline textbox in a String object, then use
available member functions to remove the offending characters using member
functions such as Remove() and Replace(). Then pass the fixed string to the
spreadsheet?

Signature
Peter [MVP Visual Developer]
Jack of all trades, master of none.