Skip to Content

Running and viewing Crystal Report via VB

Jul 20, 2017 at 01:59 PM


avatar image

We are using GE's iFix application which supports VB. We would like to run some Crystal Reports that I have developed from a link/button in iFix but don't know how to make the call. We can get a reports parameter page to pop up using the following code, but then get an error on authentication and don't know how to call the viewer. The ODBC data source is setup on the machine same as in the report.

Private Sub CommandButton2_Click()

Dim CrApp As CRAXDRT.Application

Dim CrRep As CRAXDRT.Report

Set CrApp = New CRAXDRT.Application

Dim strquery As String

Set CrRep = CrApp.OpenReport("D:\Reports\ReportName.rpt")



Set CrRep = Nothing

Set CrApp = Nothing

End Sub

Anyone know how to make this call work to run and view the report would be very much appreciated.

Jay Tyo

10 |10000 characters needed characters left characters exceeded

Please only use Alert Moderator for reasons as described here:

* Please Login or Register to Answer, Follow or Comment.

0 Answers