Calling Crystal reports - error 5893

sdeco

New Member
Hi all,
We recently have begun using CR XI Developers Edition, and are able to design reports accessing data on our Progress tables just fine. However, when we try to open a report via Progress (see below) we get a msg "The Application server for CrystalRuntime.Application is not registered (5893)". If anyone could tell me what we're doing wrong or point me in the right direction I would greatly appreciat it.

Scott


DO:
DEFINE VARIABLE chApplication AS COM-HANDLE.
DEFINE VARIABLE chDocument AS COM-HANDLE.

CREATE "CrystalRuntime.Application" chApplication.

chDocument = chApplication:OpenReport("C:\cust2.rpt", 1).
/*chDocument.SetReportVariableValue(varname, varvalue).*/
chDocument:ReadRecords().
chDocument:printOut(TRUE,1,TRUE,1,1).
/*
chDocument.selectPrinter(drivername, printername, portnr).
chDocument.PrintOut(promptyesno, nrofcopied, collatedyesno, startpage, stoppage).*/

/* release com-handles */
RELEASE OBJECT chApplication.
RELEASE OBJECT chDocument.

END.
 
Is the Progress client on the same machine as CR XI, if not has CR runtime be installed on the client? The 5893 error means it is not installed or registered in registry.
 
Top