S
schramae
Hi
I am trying to hookup click and double click events to an OWC pivot
table in a c# winform. The backend is Analysis Services. The events
fire but I am not sure how to get the contents of current cell or its
dimension members. I have looked there and wrote the following event
handler. I cannot get seem to get the contents of the current cell.
It dies on the last line and I do not see an exception. Not sure who
is catching it. Wierd com interop stuff.
private void ptLoanGroups_ClickEvent(object sender, EventArgs e)
{
Microsoft.Office.Interop.Owc11.PivotCell cell;
Microsoft.Office.Interop.Owc11.PivotData data;
data = ptGroups.ActiveData;
cell = (Microsoft.Office.Interop.Owc11.PivotCell) data.CurrentCell;
}
The current cell property fails when inspected iwth :
'ptGroups.ActiveData.CurrentCell' threw an exception of type
'System.Runtime.InteropServices.COMException' Microsoft.Office.Interop.Owc11.PivotCell
{System.Runtime.InteropServices.COMException}
Any help or examples are appreciated.
Thx
Eric
I am trying to hookup click and double click events to an OWC pivot
table in a c# winform. The backend is Analysis Services. The events
fire but I am not sure how to get the contents of current cell or its
dimension members. I have looked there and wrote the following event
handler. I cannot get seem to get the contents of the current cell.
It dies on the last line and I do not see an exception. Not sure who
is catching it. Wierd com interop stuff.
private void ptLoanGroups_ClickEvent(object sender, EventArgs e)
{
Microsoft.Office.Interop.Owc11.PivotCell cell;
Microsoft.Office.Interop.Owc11.PivotData data;
data = ptGroups.ActiveData;
cell = (Microsoft.Office.Interop.Owc11.PivotCell) data.CurrentCell;
}
The current cell property fails when inspected iwth :
'ptGroups.ActiveData.CurrentCell' threw an exception of type
'System.Runtime.InteropServices.COMException' Microsoft.Office.Interop.Owc11.PivotCell
{System.Runtime.InteropServices.COMException}
Any help or examples are appreciated.
Thx
Eric