Search code examples
c#dlloffice-2007

using ms office com objects in other systems without have office installed


i wrote a app for reading excel files.i had to add some references to Microsoft office Com Objects. it worked good in my system,but when i wanted to use it in other system in which does`t had ms office installed , i encounter a problem.i also carried dll files that has been added to project . what should i do ?


Solution

  • In order to use the relevant object libraries you'll have to make sure that Office (Excel in your case) is installed on your client machine. If you have the option I'd suggest to switch to the Open Office XML format anyways. I recently had a similar problem with MS Word and the +work to switch to the new format has def. payed of.

    Check MS Open XML SDK

    Performace++ and not depending on Office installed...