Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Wed May 28, 2008 2:51 pm

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

ewalter
 
Posts: 1
Joined: Wed May 28, 2008 2:19 pm

Tue Jun 03, 2008 7:25 am

Thank you for reporting the bug us.
We will fix the bug in next release.
User avatar

Flash
 
Posts: 56
Joined: Thu Jun 29, 2006 2:34 pm

Return to Spire.XLS