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!

VB6 App & Crystal 8 - Unknown Error

Status
Not open for further replies.

kmcclung

Programmer
Nov 20, 2001
120
US
I have developed a VB6 app that runs 8 Crystal reports (developed with v8). The exe runs perfectly on the development machine but not the test position. The exe will generate a preview of 2 of the 8 reports no problem. But when any of the other 6 are selected, the preview window flashes before I get a message box with the error: "Error detected by database dll". The only difference in the 2 reports that work and the other 6 that don't are the number of subreports - there are 0 subreports in one of the ones that works and 4 in the other. The other 6 each contain 6 subreports. I'm not sure why this would cause a problem but I'm grasping at straws at this point. Also - they are all pointed to the same DSN. Any ideas???
 
It is a problem with the runtime files that are being distributed with your app. To put it nicely Crystal Reports dependency files (.dep, the ones that tell the p&d wizard or whatever install program you are using what files are needed) have some problems. To put it more accurately they are crap and might as well not even be there(sometimes they contain circular refrences and will cause the p&d wizard to fail with some strange error). The only way to get a working install program with crystal reports is to find out what files are needed for what you are doing and add them manually. If you have the developer edition of crystal there is a file called "runtime.hlp" somewhere in the crystal directories. do a search for it and read it. Luckily it is much more accurate than their dependancy files. Once you find out what files you need, add them manually (this is always lots of fun, there are different dll's required for each export format, each data source, each method of previewing the report, etc...)
HTH

Ruairi

Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top