D
dmitri9999
I am trying to use PivotTable.Buttons.Remove method to delete certain
buttons from a pivot table toolbar, but I do not seem to get the
right syntax.
pt.Toolbar.Buttons.Remove(1) returns the following error message:
"The best overloaded method match for 'MSComctlLib.IButtons.Remove(ref
object)' has some invalid arguments"
although I read in some posts that it is possible to specify an index of
a button as an argument
How else can I reference a button to remove it from the toolbar (I do
not know their names in the class).
Here is the C# code that preceeds the method call.
private OWC10.PivotTable pt;
....
this.pt=new OWC10.PivotTable;
....
Thank you in advance.
Dmitri.
buttons from a pivot table toolbar, but I do not seem to get the
right syntax.
pt.Toolbar.Buttons.Remove(1) returns the following error message:
"The best overloaded method match for 'MSComctlLib.IButtons.Remove(ref
object)' has some invalid arguments"
although I read in some posts that it is possible to specify an index of
a button as an argument
How else can I reference a button to remove it from the toolbar (I do
not know their names in the class).
Here is the C# code that preceeds the method call.
private OWC10.PivotTable pt;
....
this.pt=new OWC10.PivotTable;
....
Thank you in advance.
Dmitri.