开发者

Using Office 2007 PIAs with Excel 2002 (Primary Interop Assembly)

开发者 https://www.devze.com 2023-02-16 03:02 出处:网络
Is this possible? My app references Excel 2007 Primary Interop Assemblies. Can I install these on a PC which has only Excel 2002 (XP) installed?

Is this possible?

My app references Excel 2007 Primary Interop Assemblies. Can I install these on a PC which has only Excel 2002 (XP) installed?

Or do I need the Office XP PIAs?

In that case, do I need to modi开发者_运维技巧fy my program to reference the old PIAs?


Just did a quick search and this link may help: Achieving Backward Compatibility with .NET Interop: Excel as Case Study

The short answer seems to be Interops are not forward compatible, i.e. they will not work with lower versioned assemblies in deployed environment than targeted originally. In order to target lower version you should reference the lower version assemblies explicitly.

0

精彩评论

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

关注公众号