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. Image for the cookie policy date

How to pass a CR+LF to Excel

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

2 Replies

AD Administrator Syncfusion Team 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 and setting the wraptext property to be true; Example, sheet.Range[1,1].Text = "LineOneLineTwo"; 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


AD Administrator Syncfusion Team April 13, 2004 06:08 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon