Calling Active Reports COM from .NET
ActiveReports 2.0 (Visual Basic 6.0) Support
Calling Active Reports COM from .NET
06-30-2009, 2:38 PM
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?
Re: Calling Active Reports COM from .NET
07-01-2009, 8:52 AM
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