Microsoft Office 文档查看器组件

发布于 2024-07-11 17:14:52 字数 388 浏览 5 评论 0原文

我们需要一个可以显示 Microsoft Office 文件(Word、Excel...)的用户控件。 无需编辑它们。

正如我所看到的,可以从 Microsoft 网站,但我想知道它是否可以嵌入到用户控件中。

我认为可能存在 COM/ActiveX 组件,但我无法检查它,因为我安装了 Office,所以我必须在干净的计算机上安装查看器。

有人有这方面的经验吗?

We need a user control that can show Microsoft Office files (Word, Excel..). There is no need for editing them.

As I can see, there are available standalone viewer applications that can be downloaded from Microsoft site, but I am wondering if it could be embedded within an user control.

I think that there could be a COM/ActiveX component, but I cannot check that because I have Office installed, so I have to install viewers on the clean machine.

Does anyone have any experience regarding this?

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

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

发布评论

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

评论(2

浪漫之都 2024-07-18 17:14:52

我会避免考虑使用 Office 查看器作为 COM 对象提供程序(即使它们确实注册了 Office COM 组件。)据我可以解释许可证(我不是律师,但必须阅读和讨论我的共享)多年来的 EULA),您不允许在您的应用程序中使用 Office 查看器提供的任何内容。 许可证的相关条款(位于开头):

  1. 安装和使用权利。

A。 一般的。 您可以在您的设备上安装和使用任意数量的软件副本。 您只能使用该软件查看和打印使用 Microsoft Office 软件创建的文件。 您不得将该软件用于任何其他目的。

我会避开 Microsoft 许可中的灰色区域。 你想要的东西可能没有被明确禁止($deity 知道 EULA 很难解释),但它绝对是许可证精神所不允许的。 因为如果他们愿意的话,你可能会被告上法庭,而且澄清灰色地带要花很多钱,而且他们财力雄厚……我想你明白我的意思了。

如果您要将用户锁定在 Office 中,您通常必须硬着头皮要求用户购买 Office 许可证。

I would avoid considering the use of the Office viewers as COM object providers (even if they do register the Office COM components.) As far as I can interpret the license (I'm not a lawyer but have had to read and discuss my share of EULAs over the years), you are NOT allowed to use anything provided by the Office viewers in your application. The relevant clause of the license (right at the start):

  1. INSTALLATION AND USE RIGHTS.

a. General. You may install and use any number of copies of the software on your devices. You may use the software only to view and print files created with Microsoft Office software. You may not use the software for any other purpose.

I'd steer clear of gray areas in Microsoft licensing. What you want might not be expressly forbidden ($deity knows EULAs are a pain to interpret), but it's definitely not allowed by the spirit of the license. Since you might get taken to court if they want to, and since clarifying gray areas costs a lot of money, and since they have deep pockets... I think you see where I'm going with this.

If you're going to lock your users into Office, you typically have to bite the bullet and require your users to buy Office licenses.

迷路的信 2024-07-18 17:14:52

如果您从 Microsoft 下载它们,那么查看器可能是 OCX 或 ActiveX 组件。 我不知道如何在 C#、C++ 中使用它,...在 Java 中我使用 jamin (http:// jawinproject.sourceforge.net/)能够使用Word,例如邮件合并。

If you download them from Microsoft then the viewer is probably an OCX or ActiveX component. I don't know how to use it in C#, C++, ... In Java I use jawin (http://jawinproject.sourceforge.net/) to be able to work with Word, like mail merge.

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