Know Microsoft Excel Version installed in the System from .Net C#
By Santhosh N
This explains how to find the version of the Microsoft Excel that has been installed in the system.
Use the namespace, Microsoft.Win32 to access Registry from .Net C# and following
code snipper gives the version of the Excel installed in the system.
using Microsoft.Win32;
private string getExcelVersion()
{
RegistryKey baseKey = Registry.ClassesRoot;
RegistryKey subKey = baseKey.OpenSubKey(@"Excel.Application\CurVer");
return subKey.GetValue(string.Empty).ToString();
}
Related FAQs
This explains how to make C# windows Forms TextBox accept only numeric values.
This explains the location of the Strong Name Generator Tool, sn.exe in Microsoft .Net 4.0 version when Visual Studio 2010 is installed.
This explains the first version of SQL Server release from Microsoft.
Know Microsoft Excel Version installed in the System from .Net C# (221 Views)