How to detect MS Excel installed on the system
July 01, 2013 by Anuraj
.Net .Net 3.0 / 3.5 .Net 4.0
Today I faced an issue, I want to open an excel file from a Windows application; before opening the file, I want to verify that MS Excel installed on the system. I found a solution using registry from MSDN.
Here is the code snippet.
But the problem with the source code is I need to know the office versions, and can identify exactly which versions are installed.
And here is the office version information.
**Office Version** | **Version Number** |
Office 2000 | 9.0 |
Office XP | 10.0 |
Office 2003 | 11.0 |
Office 2007 | 12.0 |
Office 2010 | 14.0 |
Office 2013 | 15.0 |
I don’t want to know the version of the excel installed. I just want to open a XLS file created by the application. Later I found another code snippet which will return whether Excel installed or not. Here is the code snippet.
Happy Programming
Copyright © 2024 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub