Posted 2 October 2019, 5:38 pm EST
We are rewriting our code from activeReports2 to activeReports 13, there we have some existing rpx file. we are trying to call those file dynamically in a cs file but some of the exsiting rpx is having their own scripts which is written in vb like below,
Sub OnReportStart()
Dim srpt
Set srpt = CreateObject("DDActiveReports2.ActiveReport") srpt.Load "abc.rpx" Set rpt.abc.Object = srpt Set srpt = Nothing Set srpt = CreateObject("DDActiveReports2.ActiveReport") srpt.Load "xyz.rpx" Set rpt.xyz.Object = srpt Set srpt = Nothing
End Sub
Sub OnReportEnd()
Set rpt.abc.Object = Nothing Set rpt.xyz.Object = Nothing
End Sub
So how can we use those rpx file in our code.