[英]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.