Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selecting a Microsoft Office Primary Interop Assembly version

I'm writing a .Net application that utilises Excel. Any version of Excel from '97 or later is acceptable, but I don't know which version any particular client will have. Installing the Microsoft Office PIAs through a bootstrapper is no problem.

Which version of the PIA should I include in the installation package? Do I need every PIA version, or will one PIA version cover all required Excel versions?

like image 906
Hand-E-Food Avatar asked Jan 24 '12 23:01

Hand-E-Food


1 Answers

Using the earliest PIA version should work, albeit unofficially - see MS Office PIAs "backward compatibility". Using a later version may or may not work, and is not recommended.

like image 81
PinnyM Avatar answered Nov 15 '22 05:11

PinnyM