Reputation: 1192
In C#, I'm using the Microsoft.Office.Interop.Excel reference v12.0.0.0, which (I think) corresponds to Office 2007.
I guess that my program won't run on computers without Office 2007 or above ? What should I do ?
Upvotes: 1
Views: 1788
Reputation: 13972
INFO: Develop Microsoft Office solutions with Visual Studio .NET
Writing Automation clients for multiple Office versions
Upvotes: 1
Reputation: 54999
Use late binding and write your code to only use features available in the lowest version that you want to support.
If you don't know the difference between late and early binding, this article should be useful: Binding for Office automation servers with Visual C# .NET
Upvotes: 3