private void LoadSubReportInfo() { RDLReportDocument subRep; string reportName = string.Empty; XmlNodeList xmlItems = GetCustomNodeList("Subreport"); foreach (XmlNode nod in xmlItems) { reportName = nod["ReportName"].InnerText; if (!SubReportList.Any(x => x.Name == reportName)) { subRep = new RDLReportDocument(_reportSuiteRepository); subRep.SetFields(UserCode, reportName, ReportPathWithOutName); subRep.Load(string.Format(@"{0}\{1}.{2}", ReportPathWithOutName, reportName, "rdlc")); SubReportList.Add(subRep); } } }