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 \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


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

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

Loader.
Up arrow icon