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