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

"File not found." in CRViewer with subreports

Status
Not open for further replies.

Prestaul

Programmer
Oct 29, 2003
9
US
I am using CR 8.5 and ADO 3.6 to display reports in the CRViewer using VB 6.

Reports display fine as long as there are no subreports, but when there are subreports some of my client's machines are getting the error "File not found" when I try to display the report. The error is occurring after the report object has been created and datasources have been set, at the line: crViewer.ViewReport...

Again, this is only occurring when there are subreports and only on some machines. Any ideas?
 
This error is only happening on some machines but not others? Some of your client's machines can successfully run the reports when there is data for the subreports? Is that correct?

Also, are the reports being passed an ADO recordset, or are the reports (and/or subreports) connecting to a database to get their data?

 
Yes, the error only occurs when openning reports with subreports and some clients are able to open them and some are not. Some are able to open reports when there is data for a subreport.

Also, the reports are being passed an ADO recordset for the main report and an ADO recordset for each subreport. Some of the subreports also have more than one table and are being passed two recordsets. The reports were all designed using ttx files.

The error is occurring when I call the ViewReport method and says "File not found." and nothing else, at which point the CRViewer is displayed but with no report in it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top