internal static int GetOfficeAppVersion(OfficeApp app) { try { var filePath = getOfficeComponentPath(app); return(filePath == "" ? 0 : PNStatic.GetFileMajorVersion(filePath)); } catch (Exception ex) { PNStatic.LogException(ex); return(0); } }
internal static int GetOfficeAppVersion(OfficeApp app) { try { var filePath = getOfficeComponentPath(app); return(filePath == "" ? 0 : PNStatic.GetFileMajorVersion(filePath)); } catch (Exception ex) { PNStatic.LogException(ex); return(0); } }