/// <summary> /// Try to detect current host application version. (All MS-Office products supports the version property except for Access9 aka Access 2000) /// </summary> /// <returns>version or null if its failed to detect</returns> protected internal double?TryGetApplicationVersion() { try { if (_ownerApplication.EntityIsAvailable("Version")) { double version = Convert.ToDouble(_ownerApplication.Invoker.PropertyGet(_ownerApplication, "Version"), CultureInfo.InvariantCulture); return(version); } else { return(null); } } catch { return(null); } }