Interop Dll [英] Interop Dll

查看:91
本文介绍了Interop Dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hi All,

Hi All,



我正在使用Interop office dll将word文件转换为pdf(WdExportFormat来自interop dll)。我能够达到理想的效果。但是,当我在IIS环境中推动相同时,SME开始说互操作不适用于企业解决方案
而我的解决方案需要在每个应用服务器(IIS windows 2008 R2)中安装MS office以实现互操作功能。微软是否不建议在企业应用程序中使用Interop office dll。如果受到不同的
文件类型(宏启用电子表格等),Interop会给出内存问题吗

I am using Interop office dlls to convert word file into pdf (WdExportFormat from interop dll). I am able to achieve the desirable result. But when I am pushing the same in IIS environment, the SMEs start saying that interop is not meant for enterprise solution and my solution needs MS office to be installed in each app server ( IIS windows 2008 R2) to make interop functional. Does microsoft not recommend to use Interop office dlls in enterprise application. Does Interop give memory issue if subjected to different file types ( macros enables spreadsheet etc)




Microsoft是否提供在IIS中使用互操作服务的任何平台,而无需安装完整的办公产品,并声称保持稳定?

Does Microsoft provides any platform to use interop services in IIS, without installing full office product and , claims to remain stable?




请尽快回复。

Please reply ASAP.

推荐答案

你好,

考虑使用为服务器端执行而设计的任何第三方组件。

Consider using any third-party components designed for the server-side execution instead.

Microsoft目前不推荐也不支持Microsoft Office自动化来自任何无人参与的非交互式客户端应用程序或组件(包括ASP,ASP.NET,DCOM和NT服务)的应用程序,因为Office
在此环境中运行Office时可能会出现不稳定的行为和/或死锁。 / span>



如果要构建在服务器端环境中运行的解决方案,则应该尝试使用已经安全无人值守执行的组件。或者,您应该尝试找到允许至少部分代码在客户端运行的替代方法。
如果从服务器端解决方案使用Office应用程序,该应用程序将缺乏许多必要的功能运行成功。此外,您将承担整体解决方案稳定性的风险。请参阅

有关服务器端Office自动化的注意事项
以获取更多信息。

Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side. If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution. See Considerations for server-side Automation of Office for more information.


这篇关于Interop Dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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