Exemple #1
0
            private TextBox FindNotAlwaysHiddenTextBox(ReportItemCollection reportItems)
            {
                if (reportItems == null)
                {
                    return(null);
                }
                TextBox textBox = null;

                for (int i = 0; i < reportItems.Count; i++)
                {
                    ReportItem reportItem = reportItems[i];
                    TextBox    textBox2   = FindNotAlwaysHiddenTextBox(reportItem);
                    if (IsFinish())
                    {
                        return(null);
                    }
                    if (textBox2 != null)
                    {
                        if (textBox != null)
                        {
                            m_useOWC = false;
                            return(null);
                        }
                        textBox = textBox2;
                    }
                }
                return(textBox);
            }
        internal void SetPaginationForNonComputedChild(ReportProcessing.Pagination pagination, ReportItem reportItem, ReportItem parentDef)
        {
            ReportItemCollection reportItemColDef = m_reportItemColDef;
            int num = parentDef.StartPage;

            if (parentDef is Table)
            {
                num = ((Table)parentDef).CurrentPage;
            }
            else if (parentDef is Matrix)
            {
                num = ((Matrix)parentDef).CurrentPage;
            }
            reportItem.TopInStartPage = parentDef.TopInStartPage;
            if (reportItem.SiblingAboveMe != null)
            {
                for (int i = 0; i < reportItem.SiblingAboveMe.Count; i++)
                {
                    ReportItem reportItem2 = reportItemColDef[reportItem.SiblingAboveMe[i]];
                    int        num2        = reportItem2.EndPage;
                    if (reportItem2.TopValue + reportItem2.HeightValue > reportItem.TopValue)
                    {
                        num2 = reportItem2.StartPage;
                        reportItem.TopInStartPage = reportItem2.TopInStartPage;
                    }
                    else
                    {
                        bool flag = reportItem2.ShareMyLastPage;
                        if (!(reportItem2 is Table) && !(reportItem2 is Matrix))
                        {
                            flag = false;
                        }
                        if (!pagination.IgnorePageBreak && pagination.PageBreakAtEnd(reportItem2) && !flag)
                        {
                            num2++;
                            if (i == reportItem.SiblingAboveMe.Count - 1)
                            {
                                pagination.SetCurrentPageHeight(reportItem, reportItem.HeightValue);
                                reportItem.TopInStartPage = 0.0;
                            }
                        }
                        else
                        {
                            reportItem.TopInStartPage = pagination.CurrentPageHeight;
                        }
                    }
                    num = Math.Max(num, num2);
                }
            }
            if (pagination.CanMoveToNextPage(pagination.PageBreakAtStart(reportItem)))
            {
                num++;
                reportItem.TopInStartPage = 0.0;
                pagination.SetCurrentPageHeight(reportItem, reportItem.HeightValue);
            }
            reportItem.StartPage = num;
            reportItem.EndPage   = num;
        }
Exemple #3
0
 internal Report(int id, int idForReportItems)
     : base(id, null)
 {
     m_intermediateFormatVersion = new IntermediateFormatVersion();
     m_reportVersion             = Guid.NewGuid();
     m_height           = "11in";
     m_width            = "8.5in";
     m_dataSources      = new DataSourceList();
     m_reportItems      = new ReportItemCollection(idForReportItems, normal: true);
     m_pageAggregates   = new DataAggregateInfoList();
     m_exprCompiledCode = new byte[0];
 }
 internal ReportItemColInstance(ReportProcessing.ProcessingContext pc, ReportItemCollection reportItemsDef)
 {
     m_reportItemColDef = reportItemsDef;
     if (reportItemsDef.ComputedReportItems != null)
     {
         m_reportItemInstances = new ReportItemInstanceList(reportItemsDef.ComputedReportItems.Count);
     }
     if (pc != null)
     {
         m_childrenNonComputedUniqueNames = NonComputedUniqueNames.CreateNonComputedUniqueNames(pc, reportItemsDef);
     }
     m_instanceInfo = new ReportItemColInstanceInfo(pc, reportItemsDef, this);
 }
Exemple #5
0
 private void DetectIllegalReportItems(ReportItemCollection reportItems)
 {
     if (reportItems == null)
     {
         return;
     }
     for (int i = 0; i < reportItems.Count; i++)
     {
         DetectIllegalReportItems(reportItems[i]);
         if (IsFinish())
         {
             break;
         }
     }
 }
Exemple #6
0
 internal ReportItemCollection(Microsoft.ReportingServices.ReportProcessing.ReportItemCollection reportItemColDef, ReportItemColInstance reportItemColInstance, RenderingContext renderingContext, NonComputedUniqueNames[] childrenNonComputedUniqueNames)
 {
     if (reportItemColInstance != null)
     {
         ReportItemColInstanceInfo instanceInfo = reportItemColInstance.GetInstanceInfo(renderingContext.ChunkManager, renderingContext.InPageSection);
         Global.Tracer.Assert(childrenNonComputedUniqueNames == null || instanceInfo.ChildrenNonComputedUniqueNames == null);
         if (childrenNonComputedUniqueNames == null)
         {
             childrenNonComputedUniqueNames = instanceInfo.ChildrenNonComputedUniqueNames;
         }
     }
     m_childrenNonComputedUniqueNames = childrenNonComputedUniqueNames;
     m_reportItemColInstance          = reportItemColInstance;
     m_reportItemColDef = reportItemColDef;
     m_renderingContext = renderingContext;
 }
 internal ReportItemColInstanceInfo(ReportProcessing.ProcessingContext pc, ReportItemCollection reportItemsDef, ReportItemColInstance owner)
 {
     if (pc == null)
     {
         return;
     }
     m_childrenNonComputedUniqueNames = owner.ChildrenNonComputedUniqueNames;
     if (pc.ChunkManager != null && !pc.DelayAddingInstanceInfo)
     {
         if (reportItemsDef.FirstInstance)
         {
             pc.ChunkManager.AddInstanceToFirstPage(this, owner, pc.InPageSection);
             reportItemsDef.FirstInstance = false;
         }
         else
         {
             pc.ChunkManager.AddInstance(this, owner, pc.InPageSection);
         }
     }
 }
Exemple #8
0
        internal object Find(int index, int targetUniqueName, ref NonComputedUniqueNames nonCompNames, ChunkManager.RenderingChunkManager chunkManager)
        {
            object obj = null;
            ReportItemCollection reportItemCollection = (!IsSubtotal) ? MatrixHeadingDef.ReportItems : MatrixHeadingDef.Subtotal.ReportItems;

            if (reportItemCollection.Count > 0)
            {
                if (reportItemCollection.Count == 1)
                {
                    index = 0;
                }
                if (reportItemCollection.IsReportItemComputed(index))
                {
                    Global.Tracer.Assert(m_content != null, "The instance of a computed report item cannot be null.");
                    obj = ((ISearchByUniqueName)m_content).Find(targetUniqueName, ref nonCompNames, chunkManager);
                    if (obj != null)
                    {
                        return(obj);
                    }
                }
                else
                {
                    NonComputedUniqueNames nonCompNames2 = GetInstanceInfo(chunkManager).ContentUniqueNames;
                    obj = ((ISearchByUniqueName)reportItemCollection[index]).Find(targetUniqueName, ref nonCompNames2, chunkManager);
                    if (obj != null)
                    {
                        nonCompNames = nonCompNames2;
                        return(obj);
                    }
                }
            }
            if (m_subHeadingInstances != null)
            {
                return(((ISearchByUniqueName)m_subHeadingInstances).Find(targetUniqueName, ref nonCompNames, chunkManager));
            }
            return(null);
        }
Exemple #9
0
 internal Matrix(int id, int idForCornerReportItems, int idForCellReportItems, ReportItem parent)
     : base(id, parent)
 {
     m_cornerReportItems = new ReportItemCollection(idForCornerReportItems, normal: false);
     m_cellReportItems   = new ReportItemCollection(idForCellReportItems, normal: false);
 }
Exemple #10
0
 internal Rectangle(int id, int idForReportItems, ReportItem parent)
     : base(id, parent)
 {
     m_reportItems = new ReportItemCollection(idForReportItems, normal: true);
 }
 internal Subtotal(int id, int idForReportItems, bool autoDerived)
     : base(id)
 {
     m_autoDerived = autoDerived;
     m_reportItems = new ReportItemCollection(idForReportItems, normal: false);
 }
        internal static NonComputedUniqueNames[] CreateNonComputedUniqueNames(ReportProcessing.ProcessingContext pc, ReportItemCollection reportItemsDef)
        {
            if (reportItemsDef == null || pc == null)
            {
                return(null);
            }
            ReportItemList nonComputedReportItems = reportItemsDef.NonComputedReportItems;

            if (nonComputedReportItems == null)
            {
                return(null);
            }
            if (nonComputedReportItems.Count == 0)
            {
                return(null);
            }
            NonComputedUniqueNames[] array = new NonComputedUniqueNames[nonComputedReportItems.Count];
            for (int i = 0; i < nonComputedReportItems.Count; i++)
            {
                array[i] = CreateNonComputedUniqueNames(pc, nonComputedReportItems[i]);
            }
            return(array);
        }
Exemple #13
0
 internal List(int id, int idForListContent, int idForReportItems, ReportItem parent)
     : base(id, parent)
 {
     m_hierarchyDef = new ReportHierarchyNode(idForListContent, this);
     m_reportItems  = new ReportItemCollection(idForReportItems, normal: true);
 }
 internal TableRow(int id, int idForReportItems)
     : base(id)
 {
     m_reportItems = new ReportItemCollection(idForReportItems, normal: false);
     m_colSpans    = new IntList();
 }
Exemple #15
0
 internal MatrixHeading(int id, int idForReportItems, Matrix matrixDef)
     : base(id, matrixDef)
 {
     m_reportItems = new ReportItemCollection(idForReportItems, normal: false);
 }
Exemple #16
0
 internal PageSection(bool isHeader, int id, int idForReportItems, Report report)
     : base(id, report)
 {
     m_reportItems = new ReportItemCollection(idForReportItems, normal: true);
     m_isHeader    = isHeader;
 }