Creating and managing custom task panes for multiple documents in a VSTO Word addin

后端 未结 3 363
温柔的废话
温柔的废话 2020-12-08 23:11

I\'m developing a Word 2007-2010 addin using VSTO in Visual Studio 2008. In my addin, I need a custom task pane for each open word document. Basically, I need to create a ta

3条回答
  •  执笔经年
    2020-12-08 23:36

    This problem is detailed in this MSDN article titled Managing Task Panes in Multiple Word and InfoPath Documents

    You have to create a method that removes orphan CTPs (ie those that no longer have windows attached).

    I have followed this article and successfully implemented a CustomTaskPane manager that removes the orphans.

提交回复
热议问题