public List <RsCollectionReport> GetReports() { List <RsCollectionReport> lResult = new List <RsCollectionReport>(); if (ReportFolder.hasChildren) { for (int i = 0; i < ReportFolder.ItemCount; i++) { CReportItem iItem = ReportFolder[i]; if (iItem is CReportFile) { RsCollectionReport lReport = new RsCollectionReport((CReportFile)iItem); lResult.Add(lReport); } } } return(lResult); }
public List<RsCollectionReport> GetReports() { List<RsCollectionReport> lResult = new List<RsCollectionReport>(); if (ReportFolder.hasChildren) { for (int i = 0; i < ReportFolder.ItemCount; i++) { CReportItem iItem = ReportFolder[i]; if (iItem is CReportFile) { RsCollectionReport lReport = new RsCollectionReport((CReportFile)iItem); lResult.Add(lReport); } } } return lResult; }