Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Calling crystal report 2013 file from powerbuilder 12.6


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.

Former Member
Not what you were looking for? View more on this topic or Ask a question