Exemplo n.º 1
0
        internal void Initialize(DataSetDefinition dataSetDefinition)
        {
            int size = 0;

            if (dataSetDefinition.DataSetCore != null && dataSetDefinition.DataSetCore.Query != null && dataSetDefinition.DataSetCore.Query.Parameters != null)
            {
                size = dataSetDefinition.DataSetCore.Query.Parameters.Count;
            }
            m_parameters = new ParametersImpl(size);
            InitializeGlobalAndUserCollections();
            m_currentFields = new FieldsContext(this, dataSetDefinition.DataSetCore);
            m_dataSources   = new DataSourcesImpl(0);
            m_dataSets      = new DataSetsImpl(0);
            m_variables     = new VariablesImpl(lockAdd: false);
            m_aggregates    = new AggregatesImpl(lockAdd: false, m_odpContext);
            m_reportItems   = new ReportItemsImpl(lockAdd: false);
            m_lookups       = new LookupsImpl();
        }
Exemplo n.º 2
0
        internal void Initialize(Microsoft.ReportingServices.ReportIntermediateFormat.Report report, Microsoft.ReportingServices.ReportIntermediateFormat.ReportInstance reportInstance)
        {
            int size = 0;

            if (report.Parameters != null)
            {
                size = report.Parameters.Count;
            }
            m_parameters = new ParametersImpl(size);
            InitializeGlobalAndUserCollections();
            m_currentFields = new FieldsContext(this);
            m_dataSources   = new DataSourcesImpl(report.DataSourceCount);
            m_dataSets      = new DataSetsImpl(report.DataSetCount);
            InitOrUpdateDataSetCollection(report, reportInstance, initialize: true);
            m_variables   = new VariablesImpl(lockAdd: false);
            m_aggregates  = new AggregatesImpl(lockAdd: false, m_odpContext);
            m_reportItems = new ReportItemsImpl(lockAdd: false);
            m_lookups     = new LookupsImpl();
        }