problem using Constants property

D

dmitri9999

I do not seem to be able to use Constants property of the Pivot Table
Control, although all the other properties are ok.



For instance C# code

...

private AxOWC10.AxPivotTable pivotControl;

...

this.axPivotTable1 = new AxOWC10.AxPivotTable();

...

pivotControl.ActiveView.ExpandDetails =
pivotControl.Constants.plExpandNever;

...

is compiled with the following error message:



'object' does not contain a definition for 'plExpandNever'



Any help is greatly appreciated.
 
T

Thao Moua [ms]

Instead of using the Constant property try use the enum
class follow by the enum variable itself. Like this

pivotControl.ActiveView.ExpandDetails =
PivotTableExpandEnum.plExpandNever;

Thao Moua
OWC Webchart Support

This posting is provided "AS IS" with no warranties, and
confers no rights. Use of included script samples are
subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 

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