Hello,
I have the following vb code which opens a pre made report..
''General Declarations
Dim crpApplication As CRPEAuto.Application
Dim crpReport As CRPEAuto.Report
Private Sub Command1_CLick()
Set crpApplication = CreateObject("crystal.crpe.application")
Set crpReport = crpApplication.OpenReport("C:\r1.rpt")
With crpReport.PrintWindowOptions
.HasRefreshButton = True
End With
crpReport.Preview
End Sub
The report opens fine and displays all the data it should. However, when the refresh button is pressed in the report viewer, all the data disappears. Any suggesstions to the problem would be much appreciated. I am using vb6 pro and cr 6 pro.