Hi,
In Excel I can easily switch between different styles of charts.
I would like to prepare a chart with custom styling and I would want to apply the style or copy it on my other charts.
Is there any way I can achieve this in code?
Workbook workbook = new Workbook();
workbook.LoadFromFile("E:\\testdoc\\cusExcelStyle.xlsx");
Chart chart = workbook.Worksheets["Sheet1"].Charts[0];
Workbook newWork = new Workbook();
Worksheet sheet = newWork.Worksheets[0];
sheet.Charts.Add(chart.Clone(sheet));
Chart chart2 = sheet.Charts[0];