We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to pass a CR+LF to Excel

Thread ID:

Created:

Updated:

Platform:

Replies:

12813 Apr 13,2004 12:53 PM UTC Apr 13,2004 06:08 PM UTC Windows Forms 2
loading
Tags: XlsIO
Administrator [Syncfusion]
Asked On April 13, 2004 12:53 PM UTC

Hi, I have a string that contains CR+LF. What I have to do that the exported value is equivalent to ALT+ENTER in Excel? Regards, Thomas

Administrator [Syncfusion]
Replied On April 13, 2004 04:12 PM UTC

Hi Thomas, Thank you for your interest in Syncfusion Essential ExcelRW. The equivalent of ALT+ENTER would be \n and setting the wraptext property to be true; Example, sheet.Range[1,1].Text = "LineOne\nLineTwo"; sheet.Range[1,1].CellStyle.WrapText = true; Hope that helps. Thanks. Best regards, Stephen. >Hi, > >I have a string that contains CR+LF. What I have to do that the exported value is equivalent to ALT+ENTER in Excel? > >Regards, >Thomas

Administrator [Syncfusion]
Replied On April 13, 2004 06:08 PM UTC

Thanks Stephen, that''s exactly what I''m looking for! Regards, Thomas

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;