I\'m using the Aspose library to create an Excel document. Somewhere in some cell I need to insert a new line between two parts of the text.
I tried \"\\r\\n\" but i
What worked for me:
worksheet.Cells[0, 0].Style.WrapText = true; worksheet.Cells[0, 0].Value = yourStringValue.Replace("\\r\\n", "\r\n");
My issue was that the \r\n came escaped.