PDA

View Full Version : How do you detect Powerpoint or PPviewer 97?



ghobii
02-03-2003, 01:33 PM
How do you detect Powerpoint or PPviewer 97? So you can can give the option to install.

John-oh
02-03-2003, 01:56 PM
Try:

File.GetDefaultViewer(".PPT")

ghobii
02-03-2003, 02:31 PM
I don't see how that helps me. It tells me where the exe is that will act as the viewer but if there isn't one it gives an ugly error messege. I need sort of a true or false kind of answer that I can use to trigger an install dialogue.

eric_darling
02-03-2003, 02:41 PM
Perhaps this earlier thread on a similar need will be of some use to you:

http://www.indigorose.com/ubbthreads/showflat.php?Cat=&Board=UBB2&Number=569&page=&view =&sb=&o=&vc=1

It's for Acrobat Reader, but just substitute the .pdf for .ppt and I bet it'll work.