Calling Active Reports COM from .NET

Posted by: rbourgeois on 4 August 2017, 3:15 pm EST

  • Posted 4 August 2017, 3:15 pm EST

    I've created a new Visual Studio 2008 VB.Net application, and I am instantiating a ActiveReport COM object, and trying to load a layout. The layout file being loaded was created by the VB6 COM version of Active Reports.



    Dim oReport As New DDActiveReports2.ActiveReport()

    oReport.LoadLayout("rptActualPaymentV1.rpx")



    When the code executes, I receive the following error:

    Unknown Error [ Extended Info:Don't use CreateObject() in scripting. Report was not propertly initialized.]



    Any ideas?
    2009/06/rptMonthlyValues.rpx
  • Replied 4 August 2017, 3:15 pm EST

    Hello,

    I would like to inform you that ActiveReports 2.0(COM) is designed for usage only in VB6. If you want to use ActiveReports in Visual Studio 2008 VB.NET environment, you could use our product ActiveReports for .NET. You can download the unlicensed version from this link. Further, I would like to add that the Reports created in ActiveReports 2.0 can be converted to ActiveReports for .NET. You may want to look at this KB article in this regard.

    Regards,
    Prantik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels