Ejemplo n.º 1
0
        public void SetColumnArea(PaginationSettings deviceInfoSettings)
        {
            double num  = (double)(this.m_columns - 1) * this.m_columnSpacing;
            double num2 = deviceInfoSettings.UsablePageWidth - num;

            this.m_columnWidth = num2 / (double)this.m_columns;
        }
Ejemplo n.º 2
0
 private void Init(AspNetCore.ReportingServices.OnDemandReportRendering.Report report, PaginationSettings pagination, CreateAndRegisterStream createAndRegisterStream, ref Hashtable renderProperties)
 {
     this.m_pageContext             = new PageContext(pagination, report.AddToCurrentPage, report.ConsumeContainerWhitespace, createAndRegisterStream);
     this.m_paginationSettings      = pagination;
     this.m_report                  = new Report(report, this.m_pageContext, pagination);
     this.m_createAndRegisterStream = createAndRegisterStream;
     if (report.SnapshotPageSizeInfo != AspNetCore.ReportingServices.OnDemandReportRendering.Report.SnapshotPageSize.Large)
     {
         this.m_createStream = false;
     }
     if (!string.IsNullOrEmpty(pagination.ReportItemPath))
     {
         this.m_pageContext.Common.IsInSelectiveRendering = true;
         this.m_selectiveRendering = new SelectiveRendering(report, this.m_pageContext, pagination);
     }
     else if (this.m_totalPages <= 0)
     {
         this.m_totalPages = 0;
         if (report.NeedsOverallTotalPages | report.NeedsPageBreakTotalPages)
         {
             this.m_pageContext.Common.PauseDiagnostics();
             this.SetContext(0, 0);
             this.m_pageContext.PropertyCacheState = PageContext.CacheState.CountPages;
             while (this.NextPage())
             {
             }
             this.m_totalPages = this.m_pageContext.PageNumber;
             this.m_pageContext.Common.UpdateTotalPagesRegionMapping();
             this.m_pageContext.Common.ResumeDiagnostics();
             this.m_pageContext.TextBoxDuplicates = null;
         }
     }
 }
Ejemplo n.º 3
0
 public ReportSection(AspNetCore.ReportingServices.OnDemandReportRendering.ReportSection reportSection, PageContext pageContext, PaginationSettings paginationSettings, SectionPaginationSettings sectionPaginationSettings)
 {
     this.m_reportSection       = reportSection;
     this.m_pageContext         = pageContext;
     this.m_pageSettings        = paginationSettings;
     this.m_sectionPageSettings = sectionPaginationSettings;
 }
Ejemplo n.º 4
0
 public PageContextCommon(PaginationSettings pagination, AddTextBoxDelegate aAddTextBoxDelegate, bool consumeWhitespace, CreateAndRegisterStream createAndRegisterStream)
 {
     this.m_pagination              = pagination;
     this.m_addTextBox              = aAddTextBoxDelegate;
     this.m_consumeWhitespace       = consumeWhitespace;
     this.m_createAndRegisterStream = createAndRegisterStream;
 }
Ejemplo n.º 5
0
        public void Validate(PaginationSettings deviceInfoSettings, int columns, double columnSpacing, ref double pageHeight, ref double pageWidth)
        {
            if (columns > 0)
            {
                this.m_columns = columns;
            }
            if (columnSpacing >= 0.0)
            {
                this.m_columnSpacing = columnSpacing;
            }
            double num  = (double)this.m_columns * 12.699999809265137;
            double num2 = num + (double)(this.m_columns - 1) * this.m_columnSpacing + deviceInfoSettings.MarginLeft + deviceInfoSettings.MarginRight;

            if (num2 > pageWidth)
            {
                this.m_columnSpacing           = 0.0;
                deviceInfoSettings.MarginLeft  = 0.0;
                deviceInfoSettings.MarginRight = 0.0;
                if (num > pageWidth)
                {
                    pageWidth = num;
                }
            }
            double num3 = 12.699999809265137 + this.m_headerHeight + this.m_footerHeight;
            double num4 = pageHeight - (deviceInfoSettings.MarginTop + deviceInfoSettings.MarginBottom);

            if (num3 > num4)
            {
                deviceInfoSettings.MarginTop    = 0.0;
                deviceInfoSettings.MarginBottom = 0.0;
                if (num3 > pageHeight)
                {
                    pageHeight = num3;
                }
            }
        }
Ejemplo n.º 6
0
 public HPBProcessing(AspNetCore.ReportingServices.OnDemandReportRendering.Report report, PaginationSettings pagination, CreateAndRegisterStream createAndRegisterStream, ref Hashtable renderProperties)
 {
     this.Init(report, pagination, createAndRegisterStream, ref renderProperties);
 }
Ejemplo n.º 7
0
 public Report(AspNetCore.ReportingServices.OnDemandReportRendering.Report report, PageContext pageContext, PaginationSettings aPagination)
 {
     this.m_report       = report;
     this.m_pageContext  = pageContext;
     this.m_pageSettings = aPagination;
 }
Ejemplo n.º 8
0
 public PageContext(PaginationSettings pagination, AddTextBoxDelegate aAddTextBox, bool consumeWhitespace, CreateAndRegisterStream createAndRegisterStream)
 {
     this.m_common = new PageContextCommon(pagination, aAddTextBox, consumeWhitespace, createAndRegisterStream);
 }
 public SelectiveRendering(AspNetCore.ReportingServices.OnDemandReportRendering.Report report, PageContext pageContext, PaginationSettings paginationSettings)
 {
     this.m_report             = report;
     this.m_pageContext        = pageContext;
     this.m_paginationSettings = paginationSettings;
 }