ASP and ActiveReports

Posted by: ar-man on 4 August 2017, 2:59 pm EST

  • Posted 4 August 2017, 2:59 pm EST

    We have tons of .RPX reports designed in VB6 Active Reports, now I would like to view that report on asp.net page.


    I have study the code example on this post http://www.datadynamics.com/forums/2275/ShowPost.aspx


    here is my code in asp.net..


    ---------------------------------------------------------------------------------------------------------------------------------


    Dim arptServer As New ReportFactory.clsReportFactory


    Dim vByt As Byte() = New UTF8Encoding(True).GetBytes("This")


     


    strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("NWIND.MDB") & ";Persist Security Info=False"


     


    ' Turn on report debugging


    arptServer.Debugging = True


    arptServer.RPXFilePath = Server.MapPath("RPXfiles\BoundADO.rpx")


    vByt = arptServer.ExportToByteArray("PDF")


    'The 2 lines below can be used to verify that the byte array being


    'returned is being returned correctly and is not empty


    'Response.Write ubound(vbyt)


    'Response.End


    Response.Clear()


    Response.ContentType = "application/pdf"


    Response.BinaryWrite(vByt)


    ---------------------------------------------------------------------------------------------------------------------------------


    When I run the code it doesn't give me any error but it doesn't show any report on aspx page.


    can anyone guide me with this?


    Thanks

  • Replied 4 August 2017, 2:59 pm EST

    Hello ,


    If you need to use the Active Reports 2.0 and ASP.NET together,


    pay attention at the following article:


    http://www.datadynamics.com/forums/77673/ShowPost.aspx


    Sergey Romanov.

Need extra support?

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

Learn More

Forum Channels