Results 1 to 3 of 3

Thread: Refreshing Crystal Report in VB 6

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    5

    Exclamation Refreshing Crystal Report in VB 6

    How can i refresh my Crystal report viewer so as to clear any previous data in the viewer at time of loading the report ?
    I want to do this on my code at the time when im loading the report? Dont care if its done before loading or after loading the viewer? All i want is my viewer got refresh everytime so as to display the fresh information whenever i click the View report button. Right now i have to refresh the viewer by cleicing the refersh button.

  2. #2
    Addicted Member curlywink's Avatar
    Join Date
    Mar 2000
    Location
    Manila, Philippines
    Posts
    141
    Dim crMyReport as New CrystalReport1


    'Clear data before u pass to your Viewer
    crMYReport.DiscardSavedData

  3. #3
    Addicted Member curlywink's Avatar
    Join Date
    Mar 2000
    Location
    Manila, Philippines
    Posts
    141
    Dim crMyReport as New CrystalReport1


    'Clear data before u pass to your Viewer
    crMYReport.DiscardSavedData

    'ooops...then set your new data to view via

    Set crMyReport.Database.SetDataSource rsxMyRecordset



    Hope this helps

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