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 System.Environment.Newline is now showing as “x000d” in Excel.


Thanks for your posting and using Aspose.Cells.

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

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.


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