简体   繁体   English

如何使用VSTO将Flash对象添加到Outlook的自定义任务窗格中?

[英]How to add flash object into custom task pane of Outlook using VSTO?

您能否让我知道如何使用VSTO将Flash对象添加到自定义任务窗格中?

You can add a "Shockwave flash object" control to your task pane or form region. 您可以将“ Shockwave Flash对象”控件添加到任务窗格或窗体区域。 You may have to find it in your user controls and add it in you tool box. 您可能必须在用户控件中找到它并将其添加到工具框中。 You can then set the Movie property to the URI of the flash swf. 然后,您可以将Movie属性设置为flash swf的URI。

Marcus 马库斯

Update 更新资料

You can add you swf file to your project and set it to copy to output then you need to reference it in code. 您可以将swf文件添加到项目中,并将其设置为复制到输出,然后需要在代码中引用它。

add a helper property to you addin or copy the code out. 在您的插件中添加助手属性或将代码复制出来。

 static public string AssemblyDirectory { 
            get { 
                string codeBase = Assembly.GetExecutingAssembly().CodeBase; 
                UriBuilder uri = new UriBuilder(codeBase); 
                string path = Uri.UnescapeDataString(uri.Path); 
                return Path.GetDirectoryName(path); 
            } 
        }

Then in your taskpane showing/init event 然后在您的任务窗格中显示/初始化事件

String swfPath = AssemblyDirectory + Path.DirectorySeparatorChar + "menu.swf";
axShockwaveFlash1.LoadMovie(0, swfPath);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Outlook VSTO 插件中锁定自定义任务窗格上下文菜单 - Lock custom task pane context menu in Outlook VSTO Add-in 如何替换Outlook(VSTO)中的自定义任务窗格? - How do I replace a custom task pane in Outlook (VSTO)? VSTO Outlook:自定义任务窗格高度 - VSTO Outlook: Custom Task Pane height VSTO Outlook:如何显示默认情况下以定义的高度展开的 Outlook-addin 自定义任务窗格 - VSTO Outlook: How to show outlook-addin custom task pane expanded by default with a defined height 在 VSTO Outlook 加载项中为自定义任务窗格设置适当的初始高度 - Set appropriate initial height for custom task pane in VSTO Outlook Add-in VSTO Outlook:无法以编程方式设置自定义任务窗格高度 - VSTO Outlook: Cannot set custom task pane height programmatically VSTO Outlook:从自定义任务窗格中删除标题栏 - VSTO Outlook: Remove title bar from custom task pane VSTO Outlook:从 mailto 链接打开 Outlook 不会创建自定义任务窗格 - VSTO Outlook: Opening Outlook from a mailto link does not create custom task pane VSTO Outlook:新的 Outlook 应用导航栏重叠自定义任务窗格 - VSTO Outlook: new Outlook apps navigation bar overlapping custom task pane VSTO Outlook:自定义任务窗格更改其高度时处理事件 - VSTO Outlook: Handle event when custom task pane changes its height
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM