how to solve "server has not yet been opened" Err
hello everybody,
i uses access MDB file to print data in crystal report,
i have created one .rpt file in crystal report 8.5 and i am calling it from Visual Basic, my Database is in Access. now i am getting error that
"Server has not yet been opened"
my code is like this:
Option Explicit
Dim crReport As New CRAXDRT.Report
Dim crApp As New CRAXDRT.Application
Private Sub Form_Load()
Set crReport = crApp.OpenReport(mReportFileName)
crReport.Database.Tables(1).Location = App.Path & "\aia.mdb"
crViewer.ReportSource = crReport
crViewer.ViewReport
crApp.CanClose
End Sub
is this way is proper? or whats the problem with the report?
please guide me for this, its urgent
|