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 page.

    I have study the code example on this post

    here is my code in

    <FONT size=2>

    ---------------------------------------------------------------------------------------------------------------------------------</FONT><FONT color=#0000ff size=2></FONT>

    <FONT color=#0000ff size=2>Dim</FONT><FONT size=2> arptServer </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>New</FONT><FONT size=2> ReportFactory.clsReportFactory

    </FONT><FONT color=#0000ff size=2>Dim</FONT><FONT size=2> vByt </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Byte</FONT><FONT size=2>() = </FONT><FONT color=#0000ff size=2>New</FONT><FONT size=2> UTF8Encoding(</FONT><FONT color=#0000ff size=2>True</FONT><FONT size=2>).GetBytes(</FONT><FONT color=#800000 size=2>"This"</FONT><FONT size=2>)


    strConnection = </FONT><FONT color=#800000 size=2>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="</FONT><FONT size=2> & Server.MapPath(</FONT><FONT color=#800000 size=2>"NWIND.MDB"</FONT><FONT size=2>) & </FONT><FONT color=#800000 size=2>";Persist Security Info=False"


    </FONT><FONT size=2>

    </FONT><FONT color=#008000 size=2>' Turn on report debugging

    </FONT><FONT size=2>

    arptServer.Debugging = </FONT><FONT color=#0000ff size=2>True

    </FONT><FONT size=2>

    arptServer.RPXFilePath = Server.MapPath(</FONT><FONT color=#800000 size=2>"RPXfiles\BoundADO.rpx"</FONT><FONT size=2>)

    vByt = arptServer.ExportToByteArray(</FONT><FONT color=#800000 size=2>"PDF"</FONT><FONT size=2>)

    </FONT><FONT color=#008000 size=2>'The 2 lines below can be used to verify that the byte array being

    </FONT><FONT size=2>

    </FONT><FONT color=#008000 size=2>'returned is being returned correctly and is not empty

    </FONT><FONT size=2>

    </FONT><FONT color=#008000 size=2>'Response.Write ubound(vbyt)

    </FONT><FONT size=2>

    </FONT><FONT color=#008000 size=2>'Response.End

    </FONT><FONT size=2>


    Response.ContentType = </FONT><FONT color=#800000 size=2>"application/pdf"

    </FONT><FONT size=2>




    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?


  • 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:

    Sergey Romanov.

Need extra support?

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

Learn More

Forum Channels