a problem about chartSpace's XMLData

J

jtz

I want to use chartSpace's XMLData to "clone" chartSpace,as below
chartSpace2.XMLData=chartSpace1.XMLData
when series and axes in chartSpace1 are bound with data of chDataLiteral
(one of setdata method's DataSourceIndex types ),It work
perfectly,chartSpace2 "clone "chartSpace1 identically.but when chartSpace1
has a datasource such as spreadsheet or pivot,and the DataSourceIndex type
of setData go to chDataBound,it doesn't work,chartSpace2 can only "clone"
chartSpace1's fomat property such as font,color but series and axis.I had
thought that's I didn't set chartSpace2's datasource,so I set it,but it
didn't work either. ChartSpace1 and chartSpace2 were in the same page where
the datasource contol such as spreadsheet or pivot was there also.
Is there any thing I do wrong?please give me a lead.
thank in advance.
 
A

Alvin Bruney [ASP.NET MVP]

A couple things to point out here, why don't you bind from the xml
datasource and not the chart's xml data source for less overhead. Also, have
a look at your setdata method. Setdata can be called on different objects
depending on what your intention is.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top