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.

How to pass a CR+LF to Excel

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 12:12 PM

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 02:08 PM

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.

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.

;