S
slaprade
I am using VSTO2005SE with Word 2007 and VS.net Visual Basic. I am having
trouble adding a custome task pane.
I have added the following to my code
Public Sub ShowMTP(ByVal Ctrl As IRibbonControl)
Dim NUC2 As New UC2
MsgBox("gothere")
MsgBox(Me.CTPs.Count)
MTP = Me.CTPs.Add(NUC2, "Test")
MTP.Visible = True
and this derfinition
Public WithEvents CTPs As New
Microsoft.Office.Tools.CustomTaskPaneCollection
I have added the following references
Microsoft.Office.Core
Micorsoft.office.interop.word
Micorsoft.Office.Tools.Common2007
stdole
I have the following in my ribbon cml
button id="buttTaskPane" label="Show TaskPane"
screentip ="Show Style for current IP"
size="normal" onAction="ShowMTP" />
When I execute to ribbon button I get the first msg and then a msg
Cannot access a disposed object
Anyone have any ideas?
trouble adding a custome task pane.
I have added the following to my code
Public Sub ShowMTP(ByVal Ctrl As IRibbonControl)
Dim NUC2 As New UC2
MsgBox("gothere")
MsgBox(Me.CTPs.Count)
MTP = Me.CTPs.Add(NUC2, "Test")
MTP.Visible = True
and this derfinition
Public WithEvents CTPs As New
Microsoft.Office.Tools.CustomTaskPaneCollection
I have added the following references
Microsoft.Office.Core
Micorsoft.office.interop.word
Micorsoft.Office.Tools.Common2007
stdole
I have the following in my ribbon cml
button id="buttTaskPane" label="Show TaskPane"
screentip ="Show Style for current IP"
size="normal" onAction="ShowMTP" />
When I execute to ribbon button I get the first msg and then a msg
Cannot access a disposed object
Anyone have any ideas?