Results 1 to 2 of 2

Thread: [RESOLVED] How to change text property of TextObject at run time

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    74

    Resolved [RESOLVED] How to change text property of TextObject at run time

    Hi,

    I have to change text of TextObjects of Crystal Report. I tried it through following code, but it is not chaning its value.

    Please help

    VB Code:
    1. Dim l_intIndex As Integer
    2.     Dim objText
    3.     Dim l_intReportSection As Integer
    4.    
    5.  
    6.     For l_intReportSection = 1 To m_CrysReport.Sections.Count
    7.    
    8.         For l_intIndex = 1 To m_CrysReport.Sections(l_intReportSection).ReportObjects.Count
    9.            
    10.            Set objText = m_CrysReport.Sections(l_intReportSection).ReportObjects(l_intIndex)
    11.  
    12.             If TypeName(objText) = "ITextObject" Then
    13.                  Set objText.SetText = "xyx"
    14.            
    15.             End If
    16.  
    17.         Next
    18.     Next


    ~Sanjivani

  2. #2

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    74

    Re: How to change text property of TextObject at run time

    I got the solution.
    Text property is read only, we cant set this property at run time.

    ~Sanjivani

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width