有没有一种方法可以在没有许可证的情况下自动化 MS Office 应用程序?

发布于 2024-08-30 19:47:56 字数 256 浏览 2 评论 0原文

我目前正在编写一个将在 Excel 中执行自动化的应用程序。我的工作计算机上安装了 MS Office (2007),并且该应用程序在引用 Microsoft Excel 12.0 对象库时工作正常。

目标计算机已安装 Office 但未注册。它是预安装版本之一。尝试在目标计算机上运行应用程序时出现错误,提示未安装 Office?

我假设您必须有一个注册办公室才能使用对象库?无论如何,有没有办法解决这个问题,因为我没有 Office 许可证密钥,而且它非常昂贵?

I am currently writing an application that will perform automation in Excel. I have MS Office (2007) installed on my work computer and the application is working fine referencing the the Microsoft Excel 12.0 Object Lirary.

The target machine has the Office installed but not registered. It is one of those preinstalled editions. Attempting to run the application on the target machine I get an error saying Office is not installed?

I'm assuming then you have to have a registed Office to use the object libraries? Is there anyway around this as I do not have a Office license key lying around and its quite expensive?

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

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

发布评论

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

评论(2

淡笑忘祈一世凡恋 2024-09-06 19:47:57

查看是否可以在该计算机上手动运行 Excel。如果你能做到这一点,你也应该能够自动化它。如果你做不到,就不要指望能够以某种方式奇迹般地(并且合法地)通过自动化使其发挥作用。通过其对象库实现 Office 自动化与通过 UI 使用它没有什么不同。您需要拥有经过许可且正确安装的 Office 副本才能使用它。

See if you can run Excel manually on that machine. If you can do this, you should be able to automate it as well. If you cannot, don't expect to be able to somehow miraculously (and legally) to make it work through automation. Automating Office through its object library is no different than using it through the UI. You need to have a licensed and properly installed copy of Office in order to be able to use it.

郁金香雨 2024-09-06 19:47:57

没有什么是免费的。

当前的许可准则禁止在服务器上使用 Office 应用程序来服务客户端请求,除非这些客户端本身拥有 Office 的许可副本

您想要自动化/实现什么?您不认为 OpenOffice 有任何用处吗?

Nothing comes for free.

Current licensing guidelines prevent Office applications from being used on a server to service client requests, unless those clients themselves have licensed copies of Office

What are you trying to automate/achieve? Don't you think OpenOffice would be of any use?

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