public void AddToPage(RPLPageContent rplPageContent, out RPLMeasurement measurement) { measurement = new RPLMeasurement(); measurement.Left = 0f; measurement.Top = (float)this.m_itemPageSizes.Top; measurement.Width = (float)this.m_pageSettings.UsablePageWidth; measurement.Height = (float)this.m_itemPageSizes.Height; rplPageContent.AddReportSection(this.m_rplElement); }
private void WriteImpl() { Version rPLVersion = new Version(10, 6, 0); RPLReport rPLReport = new RPLReport(); rPLReport.ReportName = base.Report.Name; rPLReport.Description = base.Report.Description; rPLReport.Author = base.Report.Author; rPLReport.AutoRefresh = base.Report.AutoRefresh; rPLReport.ExecutionTime = base.Report.ExecutionTime; rPLReport.Location = base.Report.Location.ToString(); rPLReport.Language = Microsoft.ReportingServices.Rendering.HPBProcessing.Report.GetReportLanguage(base.Report); rPLReport.RPLVersion = rPLVersion; rPLReport.RPLPaginatedPages = new RPLPageContent[1]; base.RplWriter.Report = rPLReport; RPLReportSection rPLReportSection = new RPLReportSection(1); rPLReportSection.ID = base.ReportSection.ID; rPLReportSection.ColumnCount = 1; RPLBody rPLBody = new RPLBody(); RPLItemMeasurement rPLItemMeasurement = new RPLItemMeasurement(); rPLItemMeasurement.Left = 0f; rPLItemMeasurement.Top = 0f; rPLItemMeasurement.Width = base.Width; rPLItemMeasurement.Height = base.Height; rPLItemMeasurement.ZIndex = 0; rPLItemMeasurement.State = 0; rPLItemMeasurement.Element = rPLBody; rPLReportSection.Columns[0] = rPLItemMeasurement; rPLReportSection.BodyArea = new RPLMeasurement(); rPLReportSection.BodyArea.Top = 0f; rPLReportSection.BodyArea.Height = base.Height; m_pageItem.WriteStartItemToStream(base.RplWriter, base.PageContext); RPLItemMeasurement[] array2 = rPLBody.Children = new RPLItemMeasurement[1]; array2[0] = m_pageItem.WritePageItemSizes(); RPLPageLayout rPLPageLayout = new RPLPageLayout(); rPLPageLayout.PageHeight = base.Height; rPLPageLayout.PageWidth = base.Width; rPLPageLayout.Style = new RPLElementStyle(null, null); RPLPageContent rPLPageContent = new RPLPageContent(1, rPLPageLayout); RPLMeasurement rPLMeasurement = new RPLMeasurement(); rPLMeasurement.Left = 0f; rPLMeasurement.Top = 0f; rPLMeasurement.Width = base.Width; rPLMeasurement.Height = base.Height; rPLPageContent.ReportSectionSizes[0] = rPLMeasurement; rPLPageContent.AddReportSection(rPLReportSection); base.RplWriter.Report.RPLPaginatedPages[0] = rPLPageContent; }
private void WriteEndItemToRPLOM(RPLWriter rplWriter, int sectionStartIndex, string pageName) { RPLPageContent rPLPageContent = rplWriter.Report.RPLPaginatedPages[0]; rPLPageContent.PageLayout.PageName = pageName; RPLSizes[] array = new RPLSizes[this.m_sectionSizes.Count]; for (int i = 0; i < this.m_sectionSizes.Count; i++) { array[i] = new RPLSizes((float)this.m_sectionSizes[i].Top, (float)this.m_sectionSizes[i].Left, (float)this.m_sectionSizes[i].Height, (float)this.m_sectionSizes[i].Width); } rPLPageContent.ReportSectionSizes = array; for (int j = sectionStartIndex; j <= this.m_lastSectionIndex; j++) { rPLPageContent.AddReportSection(this.m_sections[j].RPLReportSection); } }