Cloning a chart from a template xls file to a new one

Technical support for Spire.XLS

Moderators: iceblue support, Flash, Manager

Cloning a chart from a template xls file to a new one

Postby ewalter » 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

Postby Flash » 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

Who is online

Users browsing this forum: No registered users and 0 guests