简体   繁体   English

有没有没有许可证就可以自动执行MS Office应用程序的方法?

[英]Is there a way to automate MS Office applications without license?

I am currently writing an application that will perform automation in Excel. 我目前正在写,这将在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. 我在工作计算机上安装了MS Office(2007),并且该应用程序运行正常,但引用了Microsoft Excel 12.0 Object Lirary。

The target machine has the Office installed but not registered. 目标计算机已安装Office,但尚未注册。 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? 尝试在目标计算机上运行该应用程序时出现错误,提示未安装Office?

I'm assuming then you have to have a registed Office to use the object libraries? 我假设您必须拥有注册的Office才能使用对象库? Is there anyway around this as I do not have a Office license key lying around and its quite expensive? 我周围没有Office许可证密钥,而且价格相当昂贵,是否有解决方法?

See if you can run Excel manually on that machine. 查看是否可以在该计算机上手动运行Excel。 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. 通过其对象库自动执行Office与通过UI进行自动化没有什么不同。 You need to have a licensed and properly installed copy of Office in order to be able to use it. 您需要具有Office的许可且已正确安装,才能使用它。

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 当前的许可指南禁止在服务器上使用Office应用程序来满足客户端请求, 除非这些客户端本身已获得Office的许可副本

What are you trying to automate/achieve? 您正在尝试实现自动化/实现什么? Don't you think OpenOffice would be of any use? 您不认为OpenOffice有用吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM