internal PageContextCommon(PaginationSettings pagination, AddTextBoxDelegate aAddTextBoxDelegate, bool consumeWhitespace, CreateAndRegisterStream createAndRegisterStream) { m_pagination = pagination; m_addTextBox = aAddTextBoxDelegate; m_consumeWhitespace = consumeWhitespace; m_createAndRegisterStream = createAndRegisterStream; }
public void SetColumnArea(PaginationSettings deviceInfoSettings) { double num = (double)(m_columns - 1) * m_columnSpacing; double num2 = deviceInfoSettings.UsablePageWidth - num; m_columnWidth = num2 / (double)m_columns; }
public void Validate(PaginationSettings deviceInfoSettings, int columns, double columnSpacing, ref double pageHeight, ref double pageWidth) { if (columns > 0) { m_columns = columns; } if (columnSpacing >= 0.0) { m_columnSpacing = columnSpacing; } double num = (double)m_columns * 2.5399999618530273; if (num + (double)(m_columns - 1) * m_columnSpacing + deviceInfoSettings.MarginLeft + deviceInfoSettings.MarginRight > pageWidth) { m_columnSpacing = 0.0; deviceInfoSettings.MarginLeft = 0.0; deviceInfoSettings.MarginRight = 0.0; if (num > pageWidth) { pageWidth = num; } } double num2 = 2.5399999618530273 + m_headerHeight + m_footerHeight; double num3 = pageHeight - (deviceInfoSettings.MarginTop + deviceInfoSettings.MarginBottom); if (num2 > num3) { deviceInfoSettings.MarginTop = 0.0; deviceInfoSettings.MarginBottom = 0.0; if (num2 > pageHeight) { pageHeight = num2; } } }
internal ReportSection(Microsoft.ReportingServices.OnDemandReportRendering.ReportSection reportSection, PageContext pageContext, PaginationSettings paginationSettings, SectionPaginationSettings sectionPaginationSettings) { m_reportSection = reportSection; m_pageContext = pageContext; m_pageSettings = paginationSettings; m_sectionPageSettings = sectionPaginationSettings; }
private void Init(Microsoft.ReportingServices.OnDemandReportRendering.Report report, PaginationSettings pagination, CreateAndRegisterStream createAndRegisterStream, ref Hashtable renderProperties) { m_pageContext = new PageContext(pagination, report.AddToCurrentPage, report.ConsumeContainerWhitespace, createAndRegisterStream); m_paginationSettings = pagination; m_report = new Report(report, m_pageContext, pagination); m_createAndRegisterStream = createAndRegisterStream; if (report.SnapshotPageSizeInfo != Microsoft.ReportingServices.OnDemandReportRendering.Report.SnapshotPageSize.Large) { m_createStream = false; } if (!string.IsNullOrEmpty(pagination.ReportItemPath)) { m_pageContext.Common.IsInSelectiveRendering = true; m_selectiveRendering = new SelectiveRendering(report, m_pageContext, pagination); } else { if (m_totalPages > 0) { return; } m_totalPages = 0; if (report.NeedsOverallTotalPages | report.NeedsPageBreakTotalPages) { m_pageContext.Common.PauseDiagnostics(); SetContext(0, 0); m_pageContext.PropertyCacheState = PageContext.CacheState.CountPages; while (NextPage()) { } m_totalPages = m_pageContext.PageNumber; m_pageContext.Common.UpdateTotalPagesRegionMapping(); m_pageContext.Common.ResumeDiagnostics(); m_pageContext.TextBoxDuplicates = null; } } }
public HPBProcessing(Microsoft.ReportingServices.OnDemandReportRendering.Report report, PaginationSettings pagination, CreateAndRegisterStream createAndRegisterStream, ref Hashtable renderProperties) { Init(report, pagination, createAndRegisterStream, ref renderProperties); }
internal Report(Microsoft.ReportingServices.OnDemandReportRendering.Report report, PageContext pageContext, PaginationSettings aPagination) { m_report = report; m_pageContext = pageContext; m_pageSettings = aPagination; }
internal PageContext(PaginationSettings pagination, AddTextBoxDelegate aAddTextBox, bool consumeWhitespace, CreateAndRegisterStream createAndRegisterStream) { m_common = new PageContextCommon(pagination, aAddTextBox, consumeWhitespace, createAndRegisterStream); }
internal SelectiveRendering(Microsoft.ReportingServices.OnDemandReportRendering.Report report, PageContext pageContext, PaginationSettings paginationSettings) { m_report = report; m_pageContext = pageContext; m_paginationSettings = paginationSettings; }