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

发布于 2024-07-27 05:09:24 字数 46 浏览 6 评论 0原文

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

Can you please let me know how to add flash object into the custom task pane using VSTO?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等数载,海棠开 2024-08-03 05:09:24

您可以将“Shockwave flash 对象”控件添加到任务窗格或表单区域。
您可能需要在用户控件中找到它并将其添加到工具箱中。
然后,您可以将 Movie 属性设置为 flash swf 的 URI。

Marcus

更新

您可以将 swf 文件添加到项目中并将其设置为复制到输出
那么你需要在代码中引用它。

向您的插件添加一个辅助属性或复制代码。

 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); 
            } 
        }

然后在您的任务窗格中显示/init 事件

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

You can add a "Shockwave flash object" control to your task pane or form region.
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.

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.

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);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文