Results 1 to 3 of 3

Thread: [RESOLVED]Change text in an Object text

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Resolved [RESOLVED]Change text in an Object text

    Hi to all:

    I have this code to change the text in a text object on CR:

    Code:
    Dim Report As New CRAXDRT.Application
    Dim rpt As CRAXDRT.Report
    Set Report = New CRAXDRT.Application
    Set rpt = Report.OpenReport(App.Path & "\selecao.rpt")
    Dim objrpt As Object
    Dim rptsection As CRAXDRT.Section
    Set rptsection = rpt.Sections("PH")
    Set objrpt = rptsection.ReportObjects(2)
    
    If objrpt.Kind = crTextObject Then
    objrpt.Name = "Segunda"
    End If
    The problem that's the code don't change any text in the desired text object

    Any suggestion to do this?

    Thanks
    Last edited by sacramento; Oct 13th, 2008 at 04:05 AM.

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