Julien
Julien

Reputation: 1192

How to use Excel Interop on lower version (.Net)?

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

Answers (2)

Hans Olsson
Hans Olsson

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

Related Questions