public static IReference <ReportInstance> CreateInstance(IReportInstanceContainer reportInstanceContainer, OnDemandProcessingContext odpContext, Report reportDef, ParameterInfoCollection parameters) { ReportInstance reportInstance = new ReportInstance(odpContext, reportDef, parameters); IReference <ReportInstance> reference = reportInstanceContainer.SetReportInstance(reportInstance, odpContext.OdpMetadata); reportInstance.m_cleanupRef = (IDisposable)reference; return(reference); }
public AspNetCore.ReportingServices.ReportIntermediateFormat.ReportInstance PrepareReportInstance(IReportInstanceContainer reportInstanceContainer) { IReference <AspNetCore.ReportingServices.ReportIntermediateFormat.ReportInstance> reference; if (reportInstanceContainer.ReportInstance == null || reportInstanceContainer.ReportInstance.Value() == null) { reference = AspNetCore.ReportingServices.ReportIntermediateFormat.ReportInstance.CreateInstance(reportInstanceContainer, this.m_odpContext, this.m_report, this.m_parameters); } else { reference = reportInstanceContainer.ReportInstance; reference.Value().InitializeFromSnapshot(this.m_odpContext); } return(reference.Value()); }
internal Microsoft.ReportingServices.ReportIntermediateFormat.ReportInstance PrepareReportInstance(IReportInstanceContainer reportInstanceContainer) { IReference <Microsoft.ReportingServices.ReportIntermediateFormat.ReportInstance> reference; if (reportInstanceContainer.ReportInstance == null || reportInstanceContainer.ReportInstance.Value() == null) { reference = Microsoft.ReportingServices.ReportIntermediateFormat.ReportInstance.CreateInstance(reportInstanceContainer, m_odpContext, m_report, m_parameters); } else { reference = reportInstanceContainer.ReportInstance; reference.Value().InitializeFromSnapshot(m_odpContext); } return(reference.Value()); }