You should always develop for the minimum version supported. If it's XP then I believe you should be using the 10.0 library.
The alternative is to use late binding and declare your Excel object variables as "object". This way you avoid having to add a specific version of the reference to your project.
Automating Excel With C#
in Computer
Posted
You should always develop for the minimum version supported. If it's XP then I believe you should be using the 10.0 library.
The alternative is to use late binding and declare your Excel object variables as "object". This way you avoid having to add a specific version of the reference to your project.