Please excuse the detailed explanation of my problem. I am a Crystal newbie.
I am working on Vb6 and CR 8.0. I have designed a main report which is running off of several tables (i.e. when I designed the report, I opened as a Blank Report and then selected Database Files in the Data Explorer and selected Find Database Files. I then located my database and selected the tables I required for my main form).
From Vb I used the following code to call on the report:
Private Sub mnuViewCrystalReport_Click()
'Run Report.
frmRptView.Show
frmRptView.CRViewer1.ReportSource = rptWriteUp
frmRptView.CRViewer1.ViewReport
End Sub
frmRptView is a form i use to view all of my Crystal Rpts
rptWriteUp is the name of the Crystal Rpt
Everything was working fine until I added a subreport. The problem is that the subreport was not designed using the same method. I needed to use SQL in the report so instead of going into Database Files, when I designed the report, I selected Current Connections and MS Access Database.
Now when I attempt to open the report from Vb i am getting the error "server has not yet been opened"
Help Appreciated!
I am working on Vb6 and CR 8.0. I have designed a main report which is running off of several tables (i.e. when I designed the report, I opened as a Blank Report and then selected Database Files in the Data Explorer and selected Find Database Files. I then located my database and selected the tables I required for my main form).
From Vb I used the following code to call on the report:
Private Sub mnuViewCrystalReport_Click()
'Run Report.
frmRptView.Show
frmRptView.CRViewer1.ReportSource = rptWriteUp
frmRptView.CRViewer1.ViewReport
End Sub
frmRptView is a form i use to view all of my Crystal Rpts
rptWriteUp is the name of the Crystal Rpt
Everything was working fine until I added a subreport. The problem is that the subreport was not designed using the same method. I needed to use SQL in the report so instead of going into Database Files, when I designed the report, I selected Current Connections and MS Access Database.
Now when I attempt to open the report from Vb i am getting the error "server has not yet been opened"
Help Appreciated!