在多个Windows上的Powerpoint 2010 VSTO加载项任务窗格 [英] Powerpoint 2010 VSTO AddIn taskpane on multiple Windows

查看:108
本文介绍了在多个Windows上的Powerpoint 2010 VSTO加载项任务窗格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在每个文档窗口上显示一个任务窗格,我已经阅读了有关它的所有MSDN文章,但是它不起作用.

I would like have a taskpane displayed on each document-windows, I have read all MSDN articles about it, but it doesn't work.

当打开3或4个文档时,我单击ToggleButton1,我得到3或4个TaskPanes,但是在同一文档窗口中.

I click on ToggleButton1 when 3 or 4 document are open, and i get 3 or 4 TaskPanes, but on same document window.

对不起,我认为我没有正确解释问题.

I think i don't have correctly explain the problem, sorry.

新尝试:打开3或4个文档时,我在Presentation 1窗口上单击ToggleButton1,并且在Prestation 1窗口中获得3或4个TaskPanes,其他演示文稿的窗口为空.

New try : I click on ToggleButton1 on Presentation 1 window when 3 or 4 document are open, and i get 3 or 4 TaskPanes inside Prestation 1 window, windows from other presentation are empty.

我想要的是在所有演示文稿中共享的任务窗格和同步的可见性

What i want is a shared taskpane and synchronized visibility accross all presentations

ThisAddin.vb

Public Class ThisAddin

    Public Sub Test()
        For Each w As PowerPoint.DocumentWindow In Application.Windows

            Me.CustomTaskPanes.Add(New UserControl1, "abc", w).Visible = True

        Next
    End Sub
End Class

Ribbon1.vb

Private Sub ToggleButton1_Click(ByVal sender As System.Object, ByVal e As Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs) Handles ToggleButton1.Click

    Globals.ThisAddIn.test()

End Sub

我也尝试过:

For Each w As PowerPoint.Presentation In Application.Presentations

推荐答案

在PowerPoint中,任务窗格为

In PowerPoint, the task panes are shared across all document windows. As you switch between presentation windows, the same task pane is used (this is why you get 3 or 4 panes when you add task panes for each window - they are shared across presentations). If you want separate task panes you need to open/close the active task panes (or separately manage task pane state per presentation) as you change the active DocumentWindow

这篇关于在多个Windows上的Powerpoint 2010 VSTO加载项任务窗格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆