The chart in the template file is a separate sheet. What we are trying to do is duplicate all the formatting and style of the chart to a sheet in the new file.
Trying to reference the chart in the template file if I do templateFile.Charts.Count =1 but the code template.Charts[0] throws an excetion "Unable to cast object of type 'Spire.Xls.Core.Spreadsheet.Charts.XlsChart' to type 'Spire.Xls.Chart'"
Is there any sample code that would accomplish what I am trying to do.
Thank you