I am using Aspose.Cells 7.0.1.0 and I am trying to set the tabcolor of a worksheet of type chart. If I open a workbook that contains a chart worksheet with a tab color set, and then save the file, the tab color on the chart worksheet disappears. This is the code:
FileStream fstream = new FileStream(“TestBook.xlsx”, FileMode.Open);
Workbook workbook = new Workbook(fstream);
workbook.Save(“Output.xlsx”, SaveFormat.Xlsx);
Also I have tried to directly set the tabcolor property of the worksheet as below:
I have tested the new version and it now saves the tabcolor correctly for the xlsx format.
workbook.Save(“Output.xlsx”, SaveFormat.Xlsx);
However I also need it to work for the xls format. The line of code below will cause the same issue where the tab color is green for a chart worksheet for an existing workbook but it does not save to the output file.