|
-
Aug 1st, 2002, 01:00 AM
#1
Thread Starter
New Member
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.
-
Aug 1st, 2002, 02:27 AM
#2
Addicted Member
Dim crMyReport as New CrystalReport1
'Clear data before u pass to your Viewer
crMYReport.DiscardSavedData
-
Aug 1st, 2002, 02:29 AM
#3
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|