开发者

How do I detect in C# whether or not a Word instance has the Save as PDF or XPS add-in?

开发者 https://www.devze.com 2023-01-13 02:09 出处:网络
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

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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消