I have an application that's creating and manipulating Excel files. It's written in vb.net, one can imagine something along the lines of open Excel, create file, fill it, show this file in Excel (somewhat similar examples).
I want to distribute this app but I don't know which exact office versions are installed on users' machines. How do I achieve the most compatibility?
Should I use the oldest interop dlls I can get my hands on (Office 2010 seems reasonably old) and embed interop types as recommended? In this scenario, there are no extra dlls in the app folder, am I safe to assume it will work everywhere Office >=2010 is installed?
Setting CopyLocal=True on Microsoft.Office.Interop.Excel results in 4 dlls being copied into app folder: Microsoft.Office.Interop.Excel.dll
, Microsoft.Vbe.Interop.dll
, office.dll
and stdole.dll
. Should I pack them together with my app?
Is it maybe a combination of the above?
Sorry for so many questions, but I'm really lost.
Is there a way to test the app with different versions of Office without buying and installing them all somewhere?