如何在 C# 中检测 Word 实例是否具有另存为 PDF 或 XPS 加载项?

发布于 2024-09-15 21:25:33 字数 204 浏览 3 评论 0原文

我正在使用安装了 Visual Studio Tools for Office 的 Visual Studio 2010。我将通过其 PIA 与 Word 进行交互。我的目标 Word 版本至少是 2003 年。Muhimbi 告诉我“另存为 PDF”在 2003 年不可用,所以我想做的是检查它在安装的版本(2003 年及更高版本)中是否可用,然后根据结果做出决定我是否想使用该加载项。蒂亚!

I am using Visual Studio 2010 with Visual Studio Tools for Office installed. I will be interfacing with Word through its PIA. My target Word version is at least 2003. Muhimbi has informed me that Save as PDF isn't available in 2003 so what I would like to do is check if it's available in the version installed (2003 and later) and then decide from the result whether I want to use the add-in or not. TIA!

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

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

发布评论

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

评论(1

娇纵 2024-09-22 21:25:33

“另存为 PDF”加载项不适用于 Word 2003。

您可以尝试进行转换并查看返回的错误。您还可以尝试第三方解决方案 已经完成了所有艰苦的工作。

The 'Save as PDF' add-in is not available for Word 2003.

You can try and do a conversion and look at the error you get back. You can also try a 3rd party solution that has already done all the hard work.

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