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!

Running compiled reports on other machines 1

Status
Not open for further replies.

AlanCrawford

Programmer
Jul 23, 2001
21
GB
I have about 20 compiled reports which I want to run on other machines. Previously I have used a copy of the 108 Crystal runtime DLLs, plus the file CRRUN32.exe, placed in the same folder as the reports, in order to run the reports.


This doesn't work with the Crystal 7 or 8 DLLs. Some reports work okay, but other reports will stop with a "Cannot open Control File" error message.

Please help me, I've been trying everything to get these compiled reports running correctly on other machines.

Alan
 
When you compile a report you get a set of three files for each report:

ReportName.exe
ReportName.rpt
ReportName.crf (which is the control file)

They have to stay together. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Thanks Ken. I have actually got the three report files in the folder as well, but the error still occurs.

It's strange, because when the "Cannot open Control File" error appears, the control files are not read-only. The CD website recommends making the control file readonly (for some reason) but this doesn't work either.

Do you think I should just forget about including what we hope are the Crystal runtime DLLS in our reports folder?
It's a wee bit of a hack I feel.

What is the easiest way of getting our reports to run on other machines? The Distribution Expert for Crystal 8 (which I got from the Crystal Decisions website)?

Could this cause grief by possibly installing Crystal 8 DLLs on machines that have earlier versions of Crystal?

My reports were originally done in Crystal 6, I've just upgraded them to Crystal 7, by removing all the Fetch and Store commands. Therefore, do you think that running the executables with the Crystal 8 DLLs would work okay?

A lot of questions for you, sorry, but I would just love to get this issue resolved once and for all. It's caused me a lot of grief!

Thanks
Alan
 
If you have CR7 you can use the distribution expert in CR7. That way there is no conflct among versions. The distribution expert comes with V7.

You can't use more than one version of CRPE on the same PC, so if you install the V8 runtime with the expert, you will now have the V8 dlls. These would probably work OK, but you will want to test it on a PC that is not mission critical to see if there are any problems. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
OK Ken, I'll give the Crystal 7 report distribution expert a go.

Thanks for your help and advice.

Kind Regards,

Alan Crawford
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top