Ramrakhyani
MIS
I am using Crystal reports 7.0 on Win NT.
I have developed a report on MS Exchange folders with many subreports. The report retrieves OK in Designer.
However, when I retrieve the report using VB application with following code, it shows Viewer initially and after retrieving for long time, it gives error: "Type mismatch"
Private ReportApp As CRPEAuto.Application
Private Report As CRPEAuto.Report
Dim strReportName As String
strReportName = App.Path & "\report name.rpt"
Set ReportApp = CreateObject("Crystal.CRPE.Application"
Set Report = ReportApp.OpenReport(strReportName)
Report.Preview
Can someone please help me with this.
Regards,
Raj
I have developed a report on MS Exchange folders with many subreports. The report retrieves OK in Designer.
However, when I retrieve the report using VB application with following code, it shows Viewer initially and after retrieving for long time, it gives error: "Type mismatch"
Private ReportApp As CRPEAuto.Application
Private Report As CRPEAuto.Report
Dim strReportName As String
strReportName = App.Path & "\report name.rpt"
Set ReportApp = CreateObject("Crystal.CRPE.Application"
Set Report = ReportApp.OpenReport(strReportName)
Report.Preview
Can someone please help me with this.
Regards,
Raj