[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2918
  • Last Modified:

Urgent - Error 525 with Crystal Reports

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
brunomsilva
Asked:
brunomsilva
  • 2
  • 2
  • 2
2 Solutions
 
DragonSlayerCommented:
different versions of the Crystal Report runtime I believe.

and at other machines, did you install the Crystal Report runtime?
0
 
brunomsilvaAuthor Commented:
i installed crpe32.dll, it's the first time i use crystal with delphi.

cheers,
 bruno
0
 
DragonSlayerCommented:
how did you install crpe32.dll?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
EwaldLCommented:
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
 
brunomsilvaAuthor Commented:
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
 
EwaldLCommented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now