What happens if Office is not installed?

Nov 10, 2012 at 9: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?

Coordinator
Nov 10, 2012 at 10:26 PM

the easiest way to check is as follows:

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

Sebastian

Nov 11, 2012 at 6:01 AM
Edited Nov 11, 2012 at 6: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.

Coordinator
Nov 11, 2012 at 12: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

Sebastian

Nov 11, 2012 at 7: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!