在自定义Office任务窗格中打开Word文档 [英] Open word document in Custom Office Task Panes

查看:116
本文介绍了在自定义Office任务窗格中打开Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们需要通过加载项并排显示多个(2)办公文档。要并排显示这两个文档,我们要使用office任务窗格并在自定义任务窗格中打开word文档。请告诉我们,我们应该使用哪些控件在office任务窗格中打开word文档。

我们需要实现类似于Compare>的比较输出的功能。在Office 2007中进行审核

谢谢,

Hi,

We need to display multiple (2) office documents for side by side, through our add-in. To display the two documents side by side, we want to use office task panes and open the word documents inside the custom task panes. Please let us know, what controls should we use to open word documents inside office task panes.

We need to implement the feature which will look similar to the comparison output from Compare > Review in Office 2007

Thanks,

推荐答案

您无法使用.NET控件。唯一可以托管Office文档的控件是DSOFramer和WebBrowser(COM)控件。两者都有其特殊性和缺点。 Google搜索应该会进行一些讨论,但使用这些讨论不是VSTO论坛的主题。您必须将它们放在UserControl中,然后将其加载到CTP中。请记住,嵌入在UserControl中的控件反过来包含在COM ActiveX中,不会提供所有相同的功能 - 不能保证这可以正常工作。

你知道的内置的Word 2007功能可以并排显示文档并同步滚动它们?
There isn't a .NET control you can use for this. The only controls available that can host Office documents are DSOFramer and the WebBrowser (COM) controls. Both have their idiosyncracies and drawbacks. A Google search should turn up some discussions, but using these is not a topic for the VSTO forum. You'd have to place them in a UserControl, which you load into the CTP. Keep in mind that controls embedded in UserControls that are, in turn, wrapped in a COM ActiveX will not provide all of the same functionality as they otherwise would - there's no guarantee that this can work.

You are aware of the built-in Word 2007 capability to display documents side-by-side and scroll them synchronously?


这篇关于在自定义Office任务窗格中打开Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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