[Microsoft.Office.Interop] Enable a button only if Office is installed RRS feed

  • Question

  • Hi!

    I'm using the Microsoft.Office.Interop.Excel dll and Microsoft.Office.Interop.Word dll in a project I'm developing. I found them very useful, but they're used only for optional and non-critical operations (more specifically, they're used while exporting an output). The problem is that if Office is not installed, or 2010 version is not supported, the sw doesn't work... That's of course unacceptable... Instead of remove the functionality involving Office and the above dlls, I would like to disable the buttons that use them.

    How can i accomplish this?

    Thanks a lot.

    • Edited by ufobm Friday, September 28, 2012 8:16 AM Title more meaningful
    Friday, September 28, 2012 7:58 AM


All replies