有没有一种方法可以在没有许可证的情况下自动化 MS Office 应用程序?
我目前正在编写一个将在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看是否可以在该计算机上手动运行 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.
没有什么是免费的。
您想要自动化/实现什么?您不认为 OpenOffice 有任何用处吗?
Nothing comes for free.
What are you trying to automate/achieve? Don't you think OpenOffice would be of any use?