MS Office单词版本问题 [英] MS OFFICE WORD VERSION PROBLEM

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

问题描述



尝试从部署服务器打开Word文档时遇到以下问题.

Hi,

I''m facing the following problem when trying to open the word document from deployment server.

Could not load file or assembly ''Microsoft.Office.Interop.Word, 
Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'' 
or one of its dependencies. The system cannot find the file specified.


我将详细说明我的问题.

客户端要在Office Word文档中打开报表,为此,我要调用Microsoft.Office.Interop.word COM compenent(版本12.0.0.0),并且在开发计算机中以及在部署并尝试打开它时一切正常来自生产服务器的上述问题正在上升.

我的客户使用Office word 2003(版本11.0.0.0)和其他重要的一件事是,生产服务器不允许安装任何MS Office对象.

任何人都可以帮助我解决问题的确切位置以及解决该问题的步骤.


谢谢,
Srinivas Kalagara


I will explain in detail my problem.

Client want to open the report in Office word document and for that I''m calling Microsoft.Office.Interop.word COM compenent(version 12.0.0.0) and everything working fine in my development machine and when I deployed and trying to open it from production server the above said problem rising.

And one more thing my client using Office word 2003( version 11.0.0.0) and other important one is production server not allowed to install any MS Office objects.

Could any one help me where exactly the problem is and what steps to follow to resolve this.


Thanks,
Srinivas Kalagara

推荐答案

如果您无法安装Office,则将无法使用Interop库,因为您将得到所描述的错误.

它并没有给您很多选择(我假设您使用的是word来修改文档,而不仅仅是做打印之类的事情).所以就在这里,就像我看到的一样:
  • 您可以尝试让他们允许安装Word.
  • 您可以为报告强制使用Office XML格式并直接修改XML.
  • 您可以将格式更改为Crystal Report或Acrobat之类的格式,然后进行重写.
  • >
You won''t be able to use the Interop libraries if you can''t install Office, because you will get the error you are describing.

It doesn''t leave you with a lot of choices (I am assuming you are using word for modifying the document, rather than just doing something like printing it). So here they are as I see them:
  • You can try to get them to allow Word to be installed.
  • You could force the Office XML format for your reports and modify the XML directly.
  • You could change the format to something else like crystal reports or Acrobat and then rewrite.


这篇关于MS Office单词版本问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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