Problem with office web components

J

Jan Hladík

Hi,
I have problem with office web components. I use PivotTable and ChartSpace
objects.
Into PivotTable I have four columns and ChartSpace is connect to PivotTable.
(myChartSpace.DataSource = myPivotTable)

When I run the application PivotTable shows columns. Chart shows
SeriesCollection of this columns.

I want to show only two of four columns in Chart. I try to delete
SeriesCollection.

myChartSpace.Chart(0).SeriesCollection.Delete(2);
myChartSpace.Chart(0).SeriesCollection.Delete(3);

But this doesn`t work.

I dont know if is this possible, when is ChartSpace connect to PivotTable.
When I try Add new SeriesCollection and then Delete, that it work.

Thanks for your help.
Jan
 

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