Exemplo n.º 1
0
        internal override bool Initialize(InitializationContext context)
        {
            context.ObjectType = ObjectType;
            context.ObjectName = m_name;
            context.ExprHostBuilder.RectangleStart(m_name);
            m_isSimple = (m_toolTip == null && m_documentMapLabel == null && m_bookmark == null && m_styleClass == null && m_visibility == null);
            base.Initialize(context);
            context.InitializeAbsolutePosition(this);
            if (m_pageBreak != null)
            {
                m_pageBreak.Initialize(context);
            }
            if (m_pageName != null)
            {
                m_pageName.Initialize("PageName", context);
                context.ExprHostBuilder.PageName(m_pageName);
            }
            if (m_visibility != null)
            {
                m_visibility.Initialize(context);
            }
            bool num = context.RegisterVisibility(m_visibility, this);

            context.IsTopLevelCellContents = false;
            m_reportItems.Initialize(context);
            if (num)
            {
                context.UnRegisterVisibility(m_visibility, this);
            }
            base.ExprHostID = context.ExprHostBuilder.RectangleEnd();
            return(false);
        }
Exemplo n.º 2
0
 internal override bool Initialize(InitializationContext context)
 {
     context.Location  |= Microsoft.ReportingServices.ReportPublishing.LocationFlags.InPageSection;
     context.ObjectType = ObjectType;
     context.ObjectName = null;
     context.ExprHostBuilder.PageSectionStart();
     base.Initialize(context);
     m_reportItems.Initialize(context);
     base.ExprHostID = context.ExprHostBuilder.PageSectionEnd();
     return(false);
 }
Exemplo n.º 3
0
        internal void BodyInitialize(InitializationContext context)
        {
            context.RegisterReportItems(m_reportItems);
            m_textboxesInScope = context.GetCurrentReferencableTextboxes();
            m_variablesInScope = context.GetCurrentReferencableVariables();
            m_reportItems.Initialize(context);
            Report report = context.Report;

            if (report.HasUserSortFilter || report.HasSubReports)
            {
                context.InitializingUserSorts = true;
                m_reportItems.InitializeRVDirectionDependentItems(context);
                context.EventSourcesWithDetailSortExpressionInitialize(null);
                List <DataSource> dataSources = report.DataSources;
                if (dataSources != null)
                {
                    for (int i = 0; i < dataSources.Count; i++)
                    {
                        List <DataSet> dataSets = dataSources[i].DataSets;
                        if (dataSets != null)
                        {
                            for (int j = 0; j < dataSets.Count; j++)
                            {
                                context.ProcessUserSortScopes(dataSets[j].Name);
                            }
                        }
                    }
                }
                context.ProcessUserSortScopes("0_ReportScope");
            }
            if (report.HasPreviousAggregates)
            {
                m_reportItems.DetermineGroupingExprValueCount(context, 0);
            }
            context.UnRegisterReportItems(m_reportItems);
        }