字自动化向后兼容Word 2003中 [英] Word Automation Backwards Compatibility With Word 2003
问题描述
我工作在C#中有些字自动化code。我有Word 2007中我自己的机器(版本Microsoft.Office.Interop.Word.dll的12.0.0.0)上安装,但我想支持Word 2003作为最低(的Microsoft.Office.Interop.Word的11.0.0.0版本。 dll的?)。
I am working on some Word automation code in C#. I have Word 2007 installed on my own machine (Version 12.0.0.0 of Microsoft.Office.Interop.Word.dll) but I would like to support Word 2003 as a minimum (Version 11.0.0.0 of Microsoft.Office.Interop.Word.dll?).
而不让Word 2003提供给我,有没有我可以针对它,使我的code是向后兼容什么办法?无需安装Word 2003年,我无法安装PIA发行包。
Without having Word 2003 available to me, is there any way that I can target it so that my code is backward compatible? I can't install the PIA redistributable package without having Word 2003 installed.
推荐答案
我的解决办法是抓住从计算机Microsoft.Office.Interop.Word.dll的副本,并与office.dll安装Word 2003。这些仅仅是用于构建针对这样我的code适用于有Word 2003中不理想的系统,但它的作品。
My solution was to grab a copy of Microsoft.Office.Interop.Word.dll and office.dll from a computer with Word 2003 installed. These are only used to build against so that my code works on systems that have Word 2003. Not ideal, but it works.
这篇关于字自动化向后兼容Word 2003中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!