Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Type mismatch error

Status
Not open for further replies.
Aug 13, 2001
14
DK
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 assume you are using the Automation Server integration method?

Try this test. Create a simple report, with no subreports, and save it WITH its data. That means the report doesn't even connect to the data.

Now, will this open from your code? Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top