How do i test wether MS Excel and MS Word are installed on the host machine OS (windows, office 97 / 2000) in D2006/win32 ?
Posted on 2006-05-18
A task given to me specifies that i should make a series of outprints based on a list of files. If the files are of other types than rtf, .doc and .xls, shellexecute is to be used to create outprints. If the file type is either .rtf or .doc, MS Word should be printing it by the use of OLE, if and only if MS Word is installed on the host machine. Else, shellexecute should be used so that Wordpad can start and print the document out instead. The same will probably apply to .doc files. Xls files will also be opened by shellexecute if Excel is not installed.
Do anyone know how to check if MS Word and MS Excel is installed? And can it be done using COM/OLE functions?