开发者

Microsoft.Office.Interop.Word Version 11 with VS2010?

开发者 https://www.devze.com 2023-03-19 14:55 出处:网络
I have a winform app that scrapes .doc files to glean info from them.It\'s using 开发者_如何学PythonMicrosoft.Office.Interop.Word V14 and works fine on my windows 7 machine with Office 2010.Now I need

I have a winform app that scrapes .doc files to glean info from them. It's using 开发者_如何学PythonMicrosoft.Office.Interop.Word V14 and works fine on my windows 7 machine with Office 2010. Now I need to make this app work on XP with Office 2003. So i was going to add a reference to v11 of the dll but could not find it. I downloaded the PIA installer from here http://support.microsoft.com/kb/897646 but the install just disappears a second into the install.

How do I add a reference to V11 of the interop libraries without having office 2003 installed?

Thanks, Chris


I just needed to change the Embed Interop Types property on the assemblies to True. Found an article on it here: msdn.microsoft.com/en-us/library/ee317478.aspx. Now its working on win7/office2010 and xp/office2003. Thanks for pointing me down the correct path Hans!

0

精彩评论

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

关注公众号