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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Unable to Load Report"

Status
Not open for further replies.

giveusaclue

Technical User
Feb 28, 2001
2
GB
I wish to automate reports by changing filename at runtime, and have follwed the instructions for "Win98 scheduler printing/exporting" from the Seagate knowledge base.

Using Crystal Ver 8 Pro, and VB5 Enterprise.

I am running it from within Debug in VB, since I get the error "Unable to load report". This occurs at the line "CrystalReport1.Action=1"

The filename appears to be correct, ie App.path & "\report1.rpt"

Thanking anyone in advance.

 
What components and references have you added to the report. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Dear Ken, many thanks for the quick response.

REFS :-
VBA - VBA5.dll
VB runtime Objects & Procedures - MSVBVM50.dll\2
VB Objects & Procedures - VB5.OLB
Crystal report Control 4.6 - CRYSTL32.oca
Crystal ActiveX Query Viewer
CRystal report viewer control - CRVIEWER.OCA

COMPS :-
Crystal report Control 4.6
Crystal ActiveX Query Viewer 1.0
CRystal report viewer control

Project is as per Seagate Article ID c2001564, ie single for with only Crystal control on it.

Regards.
 
You are trying to run a V8 report with the V4.6 Control. I think this is the problem. You need the V8 control, which requires that you buy the developer version of Crystal.

To confirm this, create a simple report in your V4.6 of the report designer and try to launch it from VB. I am pretty sure that the only thing you need to add to the project for CR is the OCX control itself since you are using the OCX. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top