/// <summary> /// Get the fully-qualified path to the Crystal reports template file /// </summary> /// <param name="installDirIn">The root installation directory name</param> /// <param name="areaIn">The area name</param> /// <param name="versionIn">The version number</param> /// <param name="viewName">The name of the view</param> /// <returns>The fully-qualified path to the Crystal reports template file</returns> private string GetCrystalReportFileNameFromReportIniFile(string installDirIn, string areaIn, string versionIn, string viewName) { var filenameOnly = string.Empty; var iniFileName = areaIn + "rpt.ini"; var iniPath = Path.Combine(installDirIn, areaIn + versionIn, iniFileName); IniManager iniManager = new IniManager(iniPath); if (iniManager.KeyExists(Constants.CRYSTALREPORTS_TEMPLATEFILE_INIKEY, viewName)) { var reportTemplateNameFromIni = iniManager.Read(Constants.CRYSTALREPORTS_TEMPLATEFILE_INIKEY, viewName); filenameOnly = $"{reportTemplateNameFromIni}{Constants.REPORTEXTENSION}"; } return(filenameOnly); }