public Stream OpenReportDefinitionStreams() { using (var manifestResourceStream = ReportResourceLocator.GetReportDefinitionStream(ReportDefinitionResourceName)) { return(CustomizeReport(manifestResourceStream)); } }
public Dictionary <string, Stream> OpenSubReportDefinitionStreams() { var subReportDefinitionStreams = new Dictionary <string, Stream>(); foreach (var subReportKeyValuePair in SubReportDefinitionResourceNames) { using (var manifestResourceStream = ReportResourceLocator.GetReportDefinitionStream(subReportKeyValuePair.Value)) { subReportDefinitionStreams.Add(subReportKeyValuePair.Key, CustomizeReport(manifestResourceStream, subReportKeyValuePair.Key)); } } return(subReportDefinitionStreams); }