This project has moved and is read-only. For the latest updates, please go here.

What happens if Office is not installed?

Nov 10, 2012 at 10:23 PM

I was wondering: What happens if Office is not installed? Is there a Method I can call to ask this, or do I expect an Exception?

Nov 10, 2012 at 11:26 PM

the easiest way to check is as follows:

Type excelType = Type.GetTypeFromProgID("Excel.Application", false);
if(null == excelType)
 MessageBox.Show("not installed");


Nov 11, 2012 at 7:01 AM
Edited Nov 11, 2012 at 7:29 AM

Thanks, for the fast reply. Do you think net office should have a function to test this? Or to find out which versions of the programs are installed? Have you thought about some kind of interface with the PPT Viewer. I don't know if it is possible. Just a thought.

Nov 11, 2012 at 1:42 PM

currently i create a tools and deplyoment namespace for NetOffice 1.6 and i want add more functionality here. i have no no experience with the PPT Viewer.
do you have an interop example for me?

btw: you can use version specific progID's: Type.GetTypeFromProgID("Excel.Application.14", false) // 14 = excel 2010


Nov 11, 2012 at 8:32 PM

I don't know if it is possible so easy to show presentations with the Viewer and interacting with it at the programing level. It was just a question. At least Google says it's not that easy.

Thanks for your amazing work!