I have the following code to set a Chart Title. I’d like for a portion to be one line and the remaining on another line.
When taking your recommendation to add “\n” does not have an affect. Title renders with \n included.
I still get the x0009 text output. Will try to recreate a solution to provide to you, but not sure when time will allow for that.
Thanks for your posting and using Aspose.Cells.
Could you please try the latest version: Aspose.Cells
for .NET v220.127.116.11 because it is working fine. I have tested it with the following sample code and attached the source and output excel file for a reference.
string filePath = @“F:\Shak-Data-RW\Downloads\source.xlsx”;
Workbook workbook = new Workbook(filePath);
Worksheet worksheet = workbook.Worksheets;
Chart chart = worksheet.Charts;
chart.Title.Text = “Some new \nline text”;