protected override void ResetInstanceCache()
 {
     base.ResetInstanceCache();
     if (base.m_reportElementDef.IsOldSnapshot)
     {
         this.m_typeCode = null;
     }
     else
     {
         AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox texBoxDef = this.m_textBoxDef.TexBoxDef;
         if (texBoxDef.HasExpressionBasedValue)
         {
             texBoxDef.ResetTextBoxImpl(base.RenderingContext.OdpContext);
             this.m_originalValueEvaluated = false;
             if (texBoxDef.IsSimple)
             {
                 this.m_typeCode = null;
             }
             else
             {
                 this.m_typeCode = TypeCode.String;
             }
         }
     }
     this.m_formattedValueEvaluated = false;
     this.m_formattedValue          = null;
     this.m_toggleStateEvaluated    = false;
     this.m_duplicate      = null;
     this.m_isToggleParent = null;
 }
Exemplo n.º 2
0
 public TextRunImpl(AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox textBoxDef, AspNetCore.ReportingServices.ReportIntermediateFormat.TextRun textRunDef, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRT, IErrorContext iErrorContext, IScope scope)
 {
     this.m_textBoxDef    = textBoxDef;
     this.m_textRunDef    = textRunDef;
     this.m_reportRT      = reportRT;
     this.m_iErrorContext = iErrorContext;
     this.m_scope         = scope;
 }
 private void EvaluateOriginalValue()
 {
     if (!this.m_originalValueEvaluated)
     {
         this.m_originalValueEvaluated = true;
         AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox texBoxDef = this.m_textBoxDef.TexBoxDef;
         if (texBoxDef.HasValue)
         {
             OnDemandProcessingContext odpContext = base.RenderingContext.OdpContext;
             this.m_originalValue = default(VariantResult);
             if (texBoxDef.IsSimple)
             {
                 InternalTextRunInstance internalTextRunInstance = (InternalTextRunInstance)((ReportElementCollectionBase <TextRun>)((ReportElementCollectionBase <Paragraph>) this.m_textBoxDef.Paragraphs)[0].TextRuns)[0].Instance;
                 this.m_originalValue.Value         = internalTextRunInstance.OriginalValue;
                 this.m_originalValue.ErrorOccurred = internalTextRunInstance.ProcessedWithError;
                 this.m_typeCode = internalTextRunInstance.TypeCode;
                 this.m_originalValue.TypeCode = this.m_typeCode.Value;
             }
             else
             {
                 StringBuilder stringBuilder = new StringBuilder();
                 bool          flag          = false;
                 bool          flag2         = true;
                 foreach (ParagraphInstance paragraphInstance in this.ParagraphInstances)
                 {
                     if (!flag2)
                     {
                         flag = true;
                         stringBuilder.Append(Environment.NewLine);
                     }
                     else
                     {
                         flag2 = false;
                     }
                     foreach (TextRunInstance textRunInstance in paragraphInstance.TextRunInstances)
                     {
                         object originalValue = textRunInstance.OriginalValue;
                         if (originalValue != null)
                         {
                             flag = true;
                             stringBuilder.Append(originalValue);
                         }
                     }
                 }
                 if (flag)
                 {
                     this.m_originalValue.Value    = stringBuilder.ToString();
                     this.m_originalValue.TypeCode = TypeCode.String;
                     this.m_typeCode = TypeCode.String;
                 }
             }
         }
         else
         {
             this.m_typeCode = TypeCode.Empty;
         }
     }
 }
        public List <string> GetFieldsUsedInValueExpression()
        {
            List <string> result = null;

            AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox texBoxDef = this.m_textBoxDef.TexBoxDef;
            if (texBoxDef.HasExpressionBasedValue)
            {
                result = texBoxDef.GetFieldsUsedInValueExpression(this.ReportScopeInstance, base.RenderingContext.OdpContext);
            }
            return(result);
        }
        public ParagraphsImpl(AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox textBoxDef, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRT, IErrorContext iErrorContext, IScope scope)
        {
            this.m_textBoxDef    = textBoxDef;
            this.m_reportRT      = reportRT;
            this.m_iErrorContext = iErrorContext;
            this.m_scope         = scope;
            List <AspNetCore.ReportingServices.ReportIntermediateFormat.Paragraph> paragraphs = this.m_textBoxDef.Paragraphs;

            if (paragraphs != null)
            {
                this.m_paragraphs = new ParagraphImpl[paragraphs.Count];
            }
            else
            {
                this.m_paragraphs = new ParagraphImpl[0];
            }
        }
Exemplo n.º 6
0
 private static void DumpTablixMember(TablixMember member, StreamWriter stream)
 {
     if (member.TablixHeader != null)
     {
         stream.Write("<td ");
         stream.Write("rowspan='");
         stream.Write(member.RowSpan);
         stream.Write("' colSpan='");
         stream.Write(member.ColSpan);
         stream.Write("'>");
         stream.Write("<div style='overflow:auto;border:solid darkgreen 1px;");
         if (member.TablixHeader.CellContents != null)
         {
             stream.Write("height:");
             stream.Write(member.TablixHeader.CellContents.Height);
             stream.Write(";");
             stream.Write("width:");
             stream.Write(member.TablixHeader.CellContents.Width);
             stream.Write(";");
         }
         stream.WriteLine("'>");
         stream.WriteLine("MemberCellIndex = " + member.MemberCellIndex);
         if (member.Grouping != null)
         {
             stream.WriteLine("Dynamic<BR>");
             stream.Write("Grouping ");
             stream.Write("Name: <b><font color=\"darkblue\">");
             stream.WriteLine(member.Grouping.Name);
             stream.WriteLine("</font></b><BR>");
             if (member.Grouping.Variables != null)
             {
                 foreach (Variable variable in member.Grouping.Variables)
                 {
                     stream.WriteLine("<font color=\"darkred\"><b>" + variable.Name + "</b></font> " + variable.Value.OriginalText + "<BR>");
                 }
             }
             if (member.InScopeTextBoxes != null)
             {
                 stream.WriteLine("<font color=\"darkgreen\"><b>TextBoxesInScope:</b></font> <BR>");
                 foreach (AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox inScopeTextBox in member.InScopeTextBoxes)
                 {
                     stream.WriteLine("<font color=\"darkgreen\"><b>" + inScopeTextBox.Name + "</b></font> <BR>");
                 }
             }
         }
         else
         {
             stream.WriteLine("Static<BR>");
         }
         stream.WriteLine("RowSpan: " + member.RowSpan + "<BR>");
         stream.WriteLine("ColSpan: " + member.ColSpan + "<BR>");
         if (member.HasConditionalOrToggleableVisibility)
         {
             stream.WriteLine("HasConditionalOrToggleableVisibility<BR>");
         }
         if (member.IsAutoSubtotal)
         {
             stream.WriteLine("IsAutoSubtotal<BR>");
         }
         if (member.IsInnerMostMemberWithHeader)
         {
             stream.WriteLine("IsInnerMostMemberWithHeader<BR>");
         }
         stream.Write("HeaderSize: ");
         stream.WriteLine(member.TablixHeader.Size);
         stream.WriteLine("<BR>");
         if (member.TablixHeader.CellContents != null)
         {
             stream.Write("CellContents Type: ");
             stream.WriteLine(member.TablixHeader.CellContents.ObjectType.ToString());
             stream.WriteLine("<BR>");
             stream.Write(" \tName: <b><font color=\"darkgreen\">");
             stream.WriteLine(member.TablixHeader.CellContents.Name);
             stream.WriteLine("</font></b><BR>");
             stream.Write(" \tWidth: ");
             stream.WriteLine(member.TablixHeader.CellContents.Width);
             stream.WriteLine("<BR>");
             stream.Write(" \tHeight: ");
             stream.WriteLine(member.TablixHeader.CellContents.Height);
             stream.WriteLine("<BR>");
             if (member.TablixHeader.CellContents.ObjectType == ObjectType.Textbox)
             {
                 AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox textBox = (AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox)member.TablixHeader.CellContents;
                 stream.Write("<b>");
                 stream.Write("</b>");
                 if (textBox.UserSort != null)
                 {
                     stream.WriteLine("sort expr scope: " + textBox.UserSort.SortExpressionScopeString);
                     stream.WriteLine("<BR>");
                     stream.WriteLine("sort target: " + textBox.UserSort.SortTargetString);
                     stream.WriteLine("<BR>");
                 }
                 stream.WriteLine("<BR>");
             }
             else if (member.TablixHeader.CellContents.ObjectType == ObjectType.Tablix)
             {
                 SupportabilityRIFVisualizer.DumpTablix((AspNetCore.ReportingServices.ReportIntermediateFormat.Tablix)member.TablixHeader.CellContents, stream);
             }
         }
         stream.Write("</div>");
         stream.Write("</td>");
     }
 }
Exemplo n.º 7
0
 public TextBox(IReportScope reportScope, IDefinitionPath parentDefinitionPath, int indexIntoParentCollectionDef, AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox reportItemDef, RenderingContext renderingContext)
     : base(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, reportItemDef, renderingContext)
 {
     this.m_textBoxDef = reportItemDef;
 }
Exemplo n.º 8
0
 public TextBoxImpl(AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox itemDef, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRT, IErrorContext iErrorContext)
     : base(itemDef, reportRT, iErrorContext)
 {
     this.m_textBox    = itemDef;
     this.m_paragraphs = new ParagraphsImpl(this.m_textBox, base.m_reportRT, base.m_iErrorContext, base.m_scope);
 }