In a situation where most of the users are using the latest version of MS Office, and a few are using older ones, Office 2003/2007, due to machine limitations, is there a way to properly use the Office Interop libraries (and not 3rd party assemblies) to allow the application to be deployed without installing an older version of Office into the 2010 machines?
Share
We have the same case, I just used late binding
.CreateObject("Excel.Application"), the thing with late binding is that you won’t have any intellisense, so the best approach for me is first to write the code on a class with Office.Interop.Excel referenced, after that, Copy all the codes to the other class which use late binding.