For-Each-Loop over all TextObjects in the report ?

Hello,


I am loading a FASTREPORT report in a VB.Net (or C#) program (desktop program, WinForms).

How can I use FOR-EACH in the VB.Net program to run through all "TextObject" objects of the report.

The Report.AllObjects.InnerList is unfortunately "locked".

The aim is to find all "TextObject" objects and evaluate the respective TAG-Property.

Thank you very much

Frank

Comments

  • I'll answer myself again face-smile

    The solution is:

    Dim _obj As ObjectCollection = _Report.ForEachAllConvectedObjects(_Report)


    For Each _item As Object In _obj  

      If _item.ClassName = "TextObject" Then  

        Dim _LangId As Int16 = 0

        If Not String.IsNullOrEmpty(AsendiaFrameWork.NZ(_item.Tag, "")) Then  

          If Int16.TryParse(_item.Tag, _LangId) Then 

            _item.Text = appLanguage.GetLanguageOnlyText(_LangId)

          End If

        End If

      End If

    Next

    I didn't have ForEachAllConvectedObjects on the screen face-sad

    Sometimes you see the forest..... and so....

    Frank

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.