Solved

Urgent - Error 525 with Crystal Reports

Posted on 2003-11-16
6
2,697 Views
Last Modified: 2010-10-05
Hi,

i have developed an application which uses the Crystal Reports Print Engine v8.5 and it works fine in every computer i have Delphi installed. But when i try to run it on other computers without delphi, it keeps showing the message "error 525: unable to load report". At least one of the other computers has Crystal Reports too, so i don't have a clue of what the problem is. Any idea of what the problem might be? this is very urgent!

Here's the code:

Crpe1.ReportName := mainform.report;
crpe1.WindowParent := self;
Crpe1.Output := toWindow;
 if mainform.actCrystal then
 begin
  Crpe1.Tables.Propagate := True;
  Crpe1.Tables[0].name := empresa+'.mdb';
  crpe1.Tables[0].Path := path;
  crpe1.Tables[0].Password := 'ARTEREC';
 end;
  crpe1.DiscardSavedData;
  Crpe1.Execute;


Kind regards,
  Bruno Silva
0
Comment
Question by:brunomsilva
  • 2
  • 2
  • 2
6 Comments
 
LVL 14

Assisted Solution

by:DragonSlayer
DragonSlayer earned 250 total points
Comment Utility
different versions of the Crystal Report runtime I believe.

and at other machines, did you install the Crystal Report runtime?
0
 
LVL 4

Author Comment

by:brunomsilva
Comment Utility
i installed crpe32.dll, it's the first time i use crystal with delphi.

cheers,
 bruno
0
 
LVL 14

Expert Comment

by:DragonSlayer
Comment Utility
how did you install crpe32.dll?
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 13

Accepted Solution

by:
EwaldL earned 250 total points
Comment Utility
you need more files than the crpe32.dll, ie the files for the dataacccess and other resource files. Have a look in the runtime.hlp from crystal, i believe this will list the files needed for the vcl. If not, then look for api. Also, the code should be slightly changed, the discard saved data should be set earlier or changes / dblogon might get lost

Crpe1.ReportName := mainform.report;
crpe1.DiscardSavedData;
crpe1.WindowParent := self;
Crpe1.Output := toWindow;
if mainform.actCrystal then
 begin
  Crpe1.Tables.Propagate := True;
  Crpe1.Tables[0].name := empresa+'.mdb';
  crpe1.Tables[0].Path := path;
  crpe1.Tables[0].Password := 'ARTEREC';
 end;
 Crpe1.Execute;

If it still fails, use this tool to check what files are loaded on the dev machine
http://support.crystaldecisions.com/communityCS/TechnicalPapers/modules_how_to_use.pdf.asp
0
 
LVL 4

Author Comment

by:brunomsilva
Comment Utility
hi,

i actually copied it into the windows\system32 folder but i didn't register it. maybe that's the problem, i will try registering it and check if the error still ocurrs.

Ewaldl, if i discard saved data there, won't it try to look for the old database instead of the new one?

kind regards,
 bruno silva
0
 
LVL 13

Expert Comment

by:EwaldL
Comment Utility
in this context the discardsaveddata just means that any data, that could be saved with the report will be lost. then you specify what database you want to connect to.

if you exceucted discardsaveddata after having set the changes then the discardsaveddata would wipe out the changes you have just done
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now