用自定义表单替换部分Outlook客户端窗口 [英] Replacing part of Outlook client's window with a custom form

查看:233
本文介绍了用自定义表单替换部分Outlook客户端窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Outlook客户端开发VSTO应用程序.我正在尝试在Outlook客户端窗口的一部分中打开表单,该窗口在下图中以红色突出显示:

I am developing a VSTO application for Outlook client. I am trying have my form open in the part of the Outlook client window which is highlighted in red in the following image:

我认为我不能使用表单区域,因为它们会替换单个项目的视图. 因此,基本上我想做的是,当我单击工具栏上的工具按钮时,在红色区域中打开我的自定义表单(窗口或网络). 有什么想法可以做到吗?

I think I can't use the form regions because they replace the view for a single item. So basically what I want to do is opening my custom form (windows or web) in the red area when I click my tool's button on the toolbar. Any ideas how this can be done?

推荐答案

有三种主要方法可以在此处显示自己的表单:

There are three main ways for displaying your own form there:

  1. 您可以使用 WebViewURL 和用于设置Web视图状态的Folder类的 WebViewOn 属性用于文件夹. Microsoft Outlook使用客户端计算机上安装的Windows Internet Explorer版本的呈现引擎来显示网页.如果客户端计算机上未安装Internet Explorer,则Outlook将不会显示该网页.

  1. You can use the WebViewURL and WebViewOn properties of the Folder class for setting a web view state for the folder. Microsoft Outlook uses the rendering engine of the version Windows Internet Explorer installed on the client computer to display the web page. If Internet Explorer is not installed on the client computer, Outlook will not display the web page.

创建一个附属的Outlook窗口.有关更多信息,请参见在Outlook中创建相邻Windows .请注意,您需要对Windows API进行深入了解才能采用这种方式,请参见

Create an adjucent Outlook window. See Creating Adjacent Windows In Outlook for more informaiton. Note, you need to have a deep understanding of Windows API to move that way, see SetWindowsHookEx.

加载项Express 提供开箱即用的布局.在这种情况下,无需发明轮子.

Add-in Express provides a layout for the form out of the box. There is no need to invent a wheel in that case.

这篇关于用自定义表单替换部分Outlook客户端窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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