private void EvaluateTagValue()
        {
            if (m_tag.HasValue)
            {
                return;
            }
            ExpressionInfo expression = m_tagDef.Expression;

            if (expression != null)
            {
                if (expression.IsExpression)
                {
                    Image image = m_tagDef.Image;
                    m_tag = image.ImageDef.EvaluateTagExpression(expression, image.Instance.ReportScopeInstance, image.RenderingContext.OdpContext);
                }
                else
                {
                    VariantResult result = new VariantResult(errorOccurred: false, expression.Value);
                    ReportRuntime.SetVariantType(ref result);
                    m_tag = result;
                }
            }
            else
            {
                m_tag = new VariantResult(errorOccurred: false, null);
            }
        }
 private void EvaluateTagValue()
 {
     if (!this.m_tag.HasValue)
     {
         ExpressionInfo expression = this.m_tagDef.Expression;
         if (expression != null)
         {
             if (expression.IsExpression)
             {
                 Image image = this.m_tagDef.Image;
                 this.m_tag = image.ImageDef.EvaluateTagExpression(expression, image.Instance.ReportScopeInstance, image.RenderingContext.OdpContext);
             }
             else
             {
                 VariantResult value = new VariantResult(false, expression.Value);
                 ReportRuntime.SetVariantType(ref value);
                 this.m_tag = value;
             }
         }
         else
         {
             this.m_tag = new VariantResult(false, null);
         }
     }
 }
示例#3
0
        private void EvaluateOriginalValue()
        {
            if (m_originalValueEvaluated)
            {
                return;
            }
            m_originalValueEvaluated = true;
            Microsoft.ReportingServices.ReportIntermediateFormat.TextRun textRunDef = TextRunDef;
            ExpressionInfo value = textRunDef.Value;

            if (value != null)
            {
                if (value.IsExpression)
                {
                    m_originalValue           = textRunDef.EvaluateValue(ReportScopeInstance, base.ReportElementDef.RenderingContext.OdpContext);
                    m_originalValueNeedsReset = true;
                }
                else
                {
                    m_originalValue       = default(VariantResult);
                    m_originalValue.Value = value.Value;
                    ReportRuntime.SetVariantType(ref m_originalValue);
                }
            }
        }
示例#4
0
 private void EvaluateOriginalValue()
 {
     if (!this.m_originalValueEvaluated)
     {
         this.m_originalValueEvaluated = true;
         AspNetCore.ReportingServices.ReportIntermediateFormat.TextRun textRunDef = this.TextRunDef;
         ExpressionInfo value = textRunDef.Value;
         if (value != null)
         {
             if (value.IsExpression)
             {
                 this.m_originalValue           = textRunDef.EvaluateValue(this.ReportScopeInstance, base.ReportElementDef.RenderingContext.OdpContext);
                 this.m_originalValueNeedsReset = true;
             }
             else
             {
                 this.m_originalValue       = default(VariantResult);
                 this.m_originalValue.Value = value.Value;
                 ReportRuntime.SetVariantType(ref this.m_originalValue);
             }
         }
     }
 }