Skip to Content
0
Jul 22, 2016 at 08:59 AM

Calling crystal report 2013 file from powerbuilder 12.6

62 Views

Hi,

I've been using the following example code to call crystal report 9 files from powerbuilder

  1. oleobject CRXApplication
  2. oleobject CRXReport
  3. CRXApplication = Create OLEObject
  4. if CRXApplication.ConnectToNewObject("CrystalRunTime.Application")=0 then
  5. CRXReport = create OLEObject
  6. CRXReport.SetAutomationpöointer(CRXApplication.Openreport("d:\temp\test.rpt"))
  7. end if

Now I've upgraded crystal to 2013 but can't call the reports from powerbuilder.

ConnectToNewObject returns -2.

Anybody with the solution to that.