private void CreateAndInitializeCalculatedFieldWrapper(ObjectModelImpl reportOM, bool readerExtensionsSupported, DataSetCore dataSet, int fieldIndex, Microsoft.ReportingServices.ReportIntermediateFormat.Field fieldDef) { CalculatedFieldWrapperImpl value = new CalculatedFieldWrapperImpl(fieldDef, reportOM.OdpContext.ReportRuntime); bool isAggregationField = (!readerExtensionsSupported) ? true : false; if (dataSet.InterpretSubtotalsAsDetails == Microsoft.ReportingServices.ReportIntermediateFormat.DataSet.TriState.True) { isAggregationField = true; } m_fields[fieldIndex] = new FieldImpl(reportOM, value, isAggregationField, fieldDef); if (dataSet.ExprHost != null && fieldDef.ExprHost == null) { fieldDef.SetExprHost(dataSet.ExprHost, reportOM); } }