Exemple #1
0
        protected override void CreateChildren(PageContext pageContext)
        {
            ReportSectionCollection reportSections = (base.m_source as AspNetCore.ReportingServices.OnDemandReportRendering.SubReport).Report.ReportSections;
            int count = reportSections.Count;

            base.m_children           = new PageItem[count];
            base.m_indexesLeftToRight = new int[count];
            base.m_rightPadding       = 0.0;
            base.m_bottomPadding      = 0.0;
            double num = 0.0;

            for (int i = 0; i < count; i++)
            {
                ReportBody reportBody = new ReportBody(((ReportElementCollectionBase <AspNetCore.ReportingServices.OnDemandReportRendering.ReportSection>)reportSections)[i].Body, ((ReportElementCollectionBase <AspNetCore.ReportingServices.OnDemandReportRendering.ReportSection>)reportSections)[i].Width);
                reportBody.CacheNonSharedProperties(pageContext);
                reportBody.ItemPageSizes.Top = num;
                base.m_indexesLeftToRight[i] = i;
                num += reportBody.ItemPageSizes.Height;
                if (i > 0)
                {
                    List <int> list = new List <int>(1);
                    list.Add(i - 1);
                    reportBody.PageItemsAbove = list;
                }
                base.m_children[i] = reportBody;
            }
        }
Exemple #2
0
        internal void SetContext()
        {
            ReportSectionCollection reportSections = m_report.ReportSections;

            for (int i = 0; i < reportSections.Count; i++)
            {
                ReportSection reportSection = new ReportSection(reportSections[i], m_pageContext, m_pageSettings, m_pageSettings.SectionPaginationSettings[i]);
                reportSection.SetContext();
                m_sections.Add(reportSection);
            }
        }
        public void SetContext()
        {
            ReportSectionCollection reportSections = this.m_report.ReportSections;

            for (int i = 0; i < reportSections.Count; i++)
            {
                AspNetCore.ReportingServices.OnDemandReportRendering.ReportSection reportSection = ((ReportElementCollectionBase <AspNetCore.ReportingServices.OnDemandReportRendering.ReportSection>)reportSections)[i];
                ReportSection reportSection2 = new ReportSection(reportSection, this.m_pageContext, this.m_pageSettings, this.m_pageSettings.SectionPaginationSettings[i]);
                reportSection2.SetContext();
                this.m_sections.Add(reportSection2);
            }
        }
Exemple #4
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.reportSettings != null)
         {
             this.reportSettings.Dispose();
             this.reportSettings = null;
         }
         if (this.sectionCollection != null)
         {
             this.sectionCollection.Clear();
             this.sectionCollection = null;
         }
     }
 }
		protected AbstractRenderer(IReportModel reportModel,ReportDocument reportDocument,ILayouter layout)
		{
			if (reportModel == null) {
				throw new MissingModelException();
			}
			if (reportDocument == null) {
				throw new ArgumentNullException("reportDocument");
			}
			if (layout == null) {
				throw new ArgumentNullException("layout");
			}
			this.reportModel = reportModel;
			this.reportSettings = reportModel.ReportSettings;
			this.reportDocument = reportDocument;
			this.layout = layout;
			this.sections = reportModel.SectionCollection;
			Init();
		}
        private void CreateChildren(PageContext pageContext, PageItemHelper lastPageInfo, bool needsFirstBodyUpdate)
        {
            AspNetCore.ReportingServices.OnDemandReportRendering.SubReport subReport = (AspNetCore.ReportingServices.OnDemandReportRendering.SubReport)base.m_source;
            ReportSectionCollection reportSections = subReport.Report.ReportSections;

            if (this.m_childrenBody == null)
            {
                this.m_childrenBody = new PageItem[reportSections.Count];
                for (int i = this.m_bodyIndex; i < reportSections.Count; i++)
                {
                    this.m_childrenBody[i] = new ReportBody(((ReportElementCollectionBase <AspNetCore.ReportingServices.OnDemandReportRendering.ReportSection>)subReport.Report.ReportSections)[i].Body, ((ReportElementCollectionBase <AspNetCore.ReportingServices.OnDemandReportRendering.ReportSection>)subReport.Report.ReportSections)[i].Width, pageContext);
                }
            }
            if (needsFirstBodyUpdate)
            {
                this.m_childrenBody[this.m_bodyIndex].UpdateItem(lastPageInfo.ChildPage);
                this.UpdateItemPageState(subReport.OmitBorderOnPageBreak);
            }
        }
Exemple #7
0
        private void CreateChildren(PageContext pageContext, PageItemHelper lastPageInfo, bool needsFirstBodyUpdate)
        {
            Microsoft.ReportingServices.OnDemandReportRendering.SubReport subReport = (Microsoft.ReportingServices.OnDemandReportRendering.SubReport)m_source;
            ReportSectionCollection reportSections = subReport.Report.ReportSections;

            if (m_childrenBody == null)
            {
                m_childrenBody = new PageItem[reportSections.Count];
                for (int i = m_bodyIndex; i < reportSections.Count; i++)
                {
                    m_childrenBody[i] = new ReportBody(subReport.Report.ReportSections[i].Body, subReport.Report.ReportSections[i].Width, pageContext);
                }
            }
            if (needsFirstBodyUpdate)
            {
                m_childrenBody[m_bodyIndex].UpdateItem(lastPageInfo.ChildPage);
                UpdateItemPageState(subReport.OmitBorderOnPageBreak);
            }
        }
 protected AbstractRenderer(IReportModel reportModel, ReportDocument reportDocument, ILayouter layout)
 {
     if (reportModel == null)
     {
         throw new MissingModelException();
     }
     if (reportDocument == null)
     {
         throw new ArgumentNullException("reportDocument");
     }
     if (layout == null)
     {
         throw new ArgumentNullException("layout");
     }
     this.reportModel    = reportModel;
     this.reportSettings = reportModel.ReportSettings;
     this.reportDocument = reportDocument;
     this.layout         = layout;
     this.sections       = reportModel.SectionCollection;
     Init();
 }
Exemple #9
0
		protected virtual void Dispose(bool disposing)
		{
			if (disposing)
			{
				if (this.reportSettings != null) {
					this.reportSettings.Dispose();
					this.reportSettings = null;
				}
				if (this.sectionCollection != null) {
					this.sectionCollection.Clear();
					this.sectionCollection = null;
				}
				
			}
		}