After setting the chart title on some xls files and saving them out we have noticed it can corrupt the file and cause Excel to error error when trying to open the modified file.
Repro code:
var format = FileFormatUtil.DetectFileFormat("BrokenChartDoc.xls");
var asposeLoadOptions = new LoadOptions(format.LoadFormat)
{
LoadFilter = new LoadFilter(LoadDataFilterOptions.All)
};
using (var workbook = new Workbook("BrokenChartDoc.xls", asposeLoadOptions))
{
var chart = workbook.Worksheets[1].Charts[0];
chart.Title.IsAutoText = false;
chart.Title.Text = string.Empty;
workbook.Save(@"BrokenChartDoc_TitleCleared.xls");
}
@bvk,
We have logged the issue as “CELLSNET-47761” in our database for investigations. Once we will have some news for you, we will update you in this topic.
We have fixed the issue of corrupted file. But we find another issue that the max value of value axis is not the same as MS Excel. We have logged a separate ticket with an id “CELLSNET-47763” in our database for investigations. Once we figure it out as well, we will update you with a fix.
The issues you have found earlier (filed as CELLSNET-47763,CELLSNET-47761) have been fixed in this update. This message was posted using Bugs notification tool by simon.zhao