Calling Crystal from Progress.. Help..

gnome

Member
Hi guys,

I'm trying to call Crystal Reports 9 from Progress 9.1C and There is an error upon creating the Object.

DEF VAR hCrysApp AS COM-HANDLE NO-UNDO.

CREATE "CRAXDDRT.Application" hCrysApp.

RELEASE OBJECT
hCrysApp NO-ERROR.

The automation server for CRAXDDRT.Application is not registered properly.
Please reinstall this server or try registering it again. (5893)

But I have this code working in vb6 :

Dim Report As New CRAXDDRT.Application

Private Sub Form_Load()
Screen.MousePointer = vbHourglass
CRViewer91.ReportSource = Report.OpenReport("d:\comp\app\rpts\sample.rpt")
CRViewer91.ViewReport
Screen.MousePointer = vbDefault
End Sub


fyi: I'm using Merant 3.60 3-Bit Progress SQL92 v9.1c as ODBC Driver


Hope someone can lead me to right direction.
 

gnome

Member
Ok I found the solution.

CREATE "CRAXDDRT.Application" hCrysApp.
should be
CREATE "CrystalDesignRuntime.Application" hCrysApp.

I just used Progress COM Object Viewer instead of MS Object Browser.
 

gnome

Member
Here you go.

C:\Program Files\Common Files\Crystal Decisions\2.0\crystalreportviewers\ActiveXViewer
 
Top