MS Office PIA“向后兼容性”

发布于 2024-07-21 14:57:35 字数 273 浏览 4 评论 0原文

我已经成功完成了与 MS Word 集成的 Windows 窗体应用程序 - 该应用程序写入 Word 模板中的合并字段。 我使用 MS Word 2007 制作了该模板,但以兼容模式将其保存为 97-2003 '.dot' 文件。 由于我安装了 Office 2007,因此我使用的是 MS Word 对象库 PIA 12.0 版。 如果我要部署此应用程序,其他使用 Office XP 或 2003 的人是否能够使用它,因此我会询问兼容性问题?

我已将 PIA DLL 复制到应用程序的输出目录。

I've successfully completed a Windows Forms application with MS Word integration - the application writes to mergefields in a Word Template. I did the template using MS Word 2007, but saved it in compatible mode as a 97-2003 '.dot' file. Due to the fact that I have Office 2007 installed, I'm using version 12.0 of the MS Word Object Library PIA. If I were to deploy this application, would another person using Office XP or 2003 be able to use it, hence my asking about compatibility?

I have copied the PIA DLLs to the output directory of the application.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拍不死你 2024-07-28 14:57:35

您可以使用使用旧版 PIA 编译的应用程序来自动执行 Word 2007,但不能使用使用 Office 2007 PIA 编译的应用程序来自动执行早期版本的 Word。

有些东西可能有效,但通常不支持。

问题是,较新版本的 Word 具有新功能,而较新的 PIA 支持这些新功能。 您可以轻松构建一个利用较新 PIA 中的新功能的应用程序。 当您针对旧版本的 Word 运行该应用程序时,谁知道会发生什么。

您需要担心的不仅仅是新的“外部”功能。 PIA 中可能有新的实现,仅与较新版本的 Office 应用程序兼容。

因此,您建议做的事情并不安全,也不推荐。

您可以下载其他版本的 PIA

You can use apps compiled with older PIAs to automate Word 2007, but you cannot use apps compiled with the Office 2007 PIAs to automate earlier versions of Word.

Some things may work, but in general it is not supported.

The issue is, the newer versions of Word have new features, and the newer PIAs support those new features. You can easily build an app that exploits the new features in the newer PIAs. When you run that app against an older version of Word - who knows what wll happen.

It isn't only new "external" features you need to worry about. There could be new implementations in the PIAs that are compatible only with the newer versions of the Office apps.

So, what you are proposing to do is not safe, and not recommended.

You can download other versions of the PIAs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文