TaskPanesCollectionItem - differences between Excel and Word Model

Add-in Express™ Support Service
That's what is more important than anything else

TaskPanesCollectionItem - differences between Excel and Word Model
 
Ma ka




Posts: 75
Joined: 2011-02-25
 If CvO_CheckHostApp() = "ohaExcel" Then
                Dim frm As Pane = TryCast(CType(...AddinModule.CurrentInstance, .....AddinModule).AdxExcelTaskPanesCollectionItem1.TaskPaneInstance,Pane)
                ....
                If CvO_CheckHostApp() = "ohaWord" Then
                    Dim frm As PaneWord = TryCast(CType(....AddinModule.CurrentInstance, .....AddinModule).AdxWordTaskPanesCollectionItem1.TaskPaneInstances, PaneWord
                  ....



Iam not finding the
AdxExcelTaskPanesCollectionItem1.TaskPaneInstance
from the Excel Adv.Taskpane in the Word Adv. Taskpane
AdxWordTaskPanesCollectionItem1.TaskPaneInstances


in Excel there is TaskPaneInstance and in word it is missing to return the running instance?
Posted 05 Jun, 2011 04:45:07 Top
Ma ka




Posts: 75
Joined: 2011-02-25
OK,

the thing is
.AdxWordTaskPanesCollectionItem1.CurrentTaskPaneInstance


Why?

Thanks
Posted 05 Jun, 2011 06:06:55 Top
Fedor Shihantsov


Guest


Hi,

Unlike Excel, Word can have several opened windows.
The CurrentTaskPaneInstance returns the current ADXWordTaskPane instance for the active window.
Posted 06 Jun, 2011 03:40:25 Top