Results 1 to 6 of 6

Thread: Crystal Reports

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Lisbon, Portugal
    Posts
    69

    Unhappy Crystal Reports

    Hi,

    I have this code to show a report after inserting and deleting some records in the database, but the report is not updated when I show it for the first time.

    Could anyone tell me why? Or another way to show the report?

    Private Sub lga_Click()
    Dim Data As String

    Prepara_Lista_Geral Data ‘This is the procedure that runs a Sql statment and writes in a table in Access

    CrystalReport1.ReportFileName = App.Path & "\lista de accionistas1.rpt"
    CrystalReport1.WindowState = crptMaximized
    CrystalReport1.DiscardSavedData = True
    CrystalReport1.Action = 1
    End Sub
    Rita Jaques

  2. #2
    Junior Member
    Join Date
    Nov 2001
    Posts
    21
    in the crystal reports in the first menu there is an option to save records with report may be checked on..unclick it and run the show...

  3. #3
    Addicted Member E-Link's Avatar
    Join Date
    Nov 2001
    Location
    INA
    Posts
    242
    hi there ,
    try this :
    Code:
    CrystalReport1.ReportFileName = App.Path & "\lista de accionistas1.rpt"
    CrystalReport1.RetrieveDataFiles
    CrystalReport1.Destination = crptToWindow
    CrystalReport1.WindowState = crptMaximized
    CrystalReport1.PrintReport

  4. #4
    New Member pari's Avatar
    Join Date
    Dec 2001
    Location
    on earth
    Posts
    13
    Hey!!
    use
    reportname.refresh property to update the contains of the report
    Pari

  5. #5
    Addicted Member E-Link's Avatar
    Join Date
    Nov 2001
    Location
    INA
    Posts
    242
    Originally posted by pari
    Hey!!
    use
    reportname.refresh property to update the contains of the report
    Pari
    do u mean refresh button ?

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Lisbon, Portugal
    Posts
    69
    Could you give an example, please.

    I don't know the reportname.refresh, but it is exactly what I want to do.
    Rita Jaques

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