OWC in desktop environment

A

Alvin Bruney [MVP]

Anybody out there get that working? Getting errors. As usual, there aint no
documentation out there on this.

objChart.Charts.Add(0);
objChart.Charts[0].SeriesCollection.Add(0);
objChart.Charts[0].Type =
chartAlias.ChartChartTypeEnum.chChartTypeArea3D;
objChart.Charts[0].SetData(Microsoft.Office.Interop.Owc11.ChartDimensionsEnum.chDimCategories,
(int)Microsoft.Office.Interop.Owc11.ChartSpecialDataSourcesEnum.chDataLiteral,
strCategory);
objChart.Charts[0].SetData(Microsoft.Office.Interop.Owc11.ChartDimensionsEnum.chDimValues,
(int)Microsoft.Office.Interop.Owc11.ChartSpecialDataSourcesEnum.chDataLiteral,
strValue);

System.ArugmentException
Additional information: In Chart.SetData, literal data may only be to
specify chDimSeriesNames or chDimCategories.

Well how am I supposed to load the value axis????
 

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