Results 1 to 3 of 3

Thread: Refresh method of viewer control (CLOSED)

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member divined's Avatar
    Join Date
    Aug 2004
    Location
    Thessaloniki, Greece
    Posts
    447

    Exclamation Refresh method of viewer control (CLOSED)

    Hello everybody

    I`ve initialized and displayed an embedded Crystal Reports report in my application using the code below.

    Code:
    Private Sub LinkViewerToReport()
     
      CrystalReport_listaEtairiwn.Database.SetDataSource rsListaEtairiwn, 3, 1
      
      Set p1 = CrystalReport_listaEtairiwn.ParameterFields.GetItemByName("Title")
      p1.AddCurrentValue (rsYphresia.Fields("Yphresia").Value)
      
      CrystalActiveXReportViewer1.ReportSource = CrystalReport_listaEtairiwn
      
      CrystalActiveXReportViewer1.ViewReport
    End Sub
    In the Activate event of the form I call the viewer control`s Refresh function. When this occurs the viewer control no longer holds the parameter field value I had passed it. Also the recordset remains unchanged, when I have now deleted a record or two.
    Am I missing something?

    thx, in advance

    George Papadopoulos
    Last edited by divined; Jun 7th, 2005 at 06:22 AM.
    SteadFast!

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