Re: refresh a crystal report
in crystal make sure you aren't saving the data with the report... in CR 11 it is under the File menu.
Re: refresh a crystal report
VB Code:
CRViewer1.EnableRefreshButton = True
Re: refresh a crystal report
VB Code:
Rs.Open str2, cnn, adOpenStatic, adLockOptimistic
Set oApp = New CRAXDRT.Application
Set oReport = oApp.OpenReport(App.Path & "\Report2.rpt", 1)
oReport.Database.SetDataSource Rs, 3, 1
CRViewer1.EnableRefreshButton = True
crvMyCRViewer.ReportSource = oReport
crvMyCRViewer.ViewReport
crvMyCRViewer.Refresh
Rs.Close
now refresh the report