private void ConstructorHelper(ReportProcessing.ProcessingContext pc, Table reportItemDef)
        {
            m_instanceInfo = new TableInstanceInfo(pc, reportItemDef, this);
            pc.Pagination.EnterIgnoreHeight(reportItemDef.StartHidden);
            IndexedExprHost visibilityHiddenExprHost = (reportItemDef.TableExprHost != null) ? reportItemDef.TableExprHost.TableRowVisibilityHiddenExpressions : null;

            if (reportItemDef.HeaderRows != null)
            {
                m_headerRowInstances = new TableRowInstance[reportItemDef.HeaderRows.Count];
                for (int i = 0; i < m_headerRowInstances.Length; i++)
                {
                    m_headerRowInstances[i] = new TableRowInstance(pc, reportItemDef.HeaderRows[i], reportItemDef, visibilityHiddenExprHost);
                }
            }
            if (reportItemDef.FooterRows != null)
            {
                m_footerRowInstances = new TableRowInstance[reportItemDef.FooterRows.Count];
                for (int j = 0; j < m_footerRowInstances.Length; j++)
                {
                    m_footerRowInstances[j] = new TableRowInstance(pc, reportItemDef.FooterRows[j], reportItemDef, visibilityHiddenExprHost);
                }
            }
            if (reportItemDef.TableGroups != null)
            {
                m_tableGroupInstances = new TableGroupInstanceList();
            }
        }
Example #2
0
        internal TableGroupInstance(ReportProcessing.ProcessingContext pc, TableGroup tableGroupDef)
        {
            Table table = (Table)tableGroupDef.DataRegionDef;

            m_uniqueName   = pc.CreateUniqueName();
            m_instanceInfo = new TableGroupInstanceInfo(pc, tableGroupDef, this);
            pc.Pagination.EnterIgnoreHeight(tableGroupDef.StartHidden);
            m_tableGroupDef = tableGroupDef;
            IndexedExprHost visibilityHiddenExprHost = (tableGroupDef.ExprHost != null) ? tableGroupDef.ExprHost.TableRowVisibilityHiddenExpressions : null;

            m_renderingPages = new RenderingPagesRangesList();
            if (tableGroupDef.HeaderRows != null)
            {
                m_headerRowInstances = new TableRowInstance[tableGroupDef.HeaderRows.Count];
                for (int i = 0; i < m_headerRowInstances.Length; i++)
                {
                    m_headerRowInstances[i] = new TableRowInstance(pc, tableGroupDef.HeaderRows[i], table, visibilityHiddenExprHost);
                }
            }
            if (tableGroupDef.FooterRows != null)
            {
                m_footerRowInstances = new TableRowInstance[tableGroupDef.FooterRows.Count];
                for (int j = 0; j < m_footerRowInstances.Length; j++)
                {
                    m_footerRowInstances[j] = new TableRowInstance(pc, tableGroupDef.FooterRows[j], table, visibilityHiddenExprHost);
                }
            }
            if (tableGroupDef.SubGroup != null)
            {
                m_subGroupInstances = new TableGroupInstanceList();
            }
            else if (table.TableDetail != null)
            {
                m_tableDetailInstances = new TableDetailInstanceList();
            }
        }