We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

System.Environment.Newline now printing as _x000d_

After the most recent update to 8.6.3.4 System.Environment.Newline is now showing as “x000d” in Excel.

Hi,

Thanks for your posting and using Aspose.Cells.

We have tested this issue with the following sample code using the latest version:

Aspose.Cells
for .NET v8.6.3.5
and found it is working fine. I have attached the output excel file generated by the code for your reference.

If your issue still occurs with the latest version then please provide us your sample code and source excel file(s) used in your code replicating this issue. We will look into it and help you.

C#

Dim wb As Workbook = New Workbook()

Dim ws As Worksheet = wb.Worksheets(0)

Dim cel As Cell = ws.Cells(“A1”)

cel.PutValue(“Test” & Environment.NewLine + “Now”)

Dim st As Style = cel.GetStyle
st.IsTextWrapped = True
cel.SetStyle(st)

wb.Save(“output.xlsx”)