Active Cell in OWC Pivot using Windows Forms

D

Dinesh

Hi,
I am trying to get the Active Cell(equivalent of PivotTable1.Selection(0))
in windows forms C#. Can some one tell me how to do this. When I use
axPivotTable1.Selection it is returning me a Com Object. I want to know to
which object should I cast this to. I tried to cast this to PivotCell but it
did not work.
I am using OWC 11.

Thanks,
Dinesh
 
A

Alvin Bruney [MVP]

I believe there is an activecell property that you can use or something
similar in name.
 
D

Dorota Papiernik

Try this:
object obj;
AxOWC10.AxPivotTable PivotTable;
OWC10.PivotAggregates pivAggrs;

obj = PivotTable.Selection;

if((obj as OWC10.PivotAggregates) != null)
{
pivAggrs = obj as OWC10.PivotAggregates;
pivAggr = pivAggrs[0];
.....
}
 

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