Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / November 2004

Tip: Looking for answers? Try searching our database.

multiline text box and carriage return ('\n) character

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
raj - 09 Nov 2004 19:43 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.