ActiveReport Not Working, running online report

Posted by: rafanunes on 4 August 2017, 3:24 pm EST

  • Posted 4 August 2017, 3:24 pm EST

    Hello guys,

    Here in my company we have an application that runs into windows server 2003 / iis 6.

    Now we are migrating to a new server windows server 2008 / iis 7.0

    But we are having a problem when we try to run the reports in the server.

    We've debugged the .asp and it's okay.

    When I invoke ExportToWebCache("RDF", .....), export a report to RDF format in ASP Server site, the “reportserver.rptserver” can return a WebCacheID. But after I set http://"MySite"/bin/webcache.dll?webCacheID? to the ARviewer 2.0 control, withc embed in page, the page was stop and no layout, just render a viewer only.

    I attached two files that show what are happening in the new (ReportNotOk.jpg) and old (ReportOk.jpg) server.
    Below is a part of the code.

    strXML = objRptServer.ExportToWebCache("RDF", 3, 0, strFilePath, strRptMaxPages.valueOf(), strRptParam.valueOf(), rsDataset, strSort, strPeriodStart, strPeriodEnd, strRptFilter.valueOf())

    // Process the result string

    objXMLResult = new ActiveXObject("MSXML2.DOMDocument.2.6")


    objXMLResult = new ActiveXObject("MSXML2.DOMDocument")

    objXMLResult.async = false
    objXMLResult.preserveWhiteSpace = true

    if (objXMLResult.loadXML(strXML)) {

    strWebCacheID = objXMLResult.documentElement.selectSingleNode("cache_id").text
    intTOCCount = objXMLResult.documentElement.selectSingleNode("toc").text


    function window.onload() {
    // Purpose : To setup the report viewer and show the report

    var i

    // Apply the cached report item to the report viewer on startup
    rptARViewer.Datapath = "Bin/Webcache.dll?<% = strWebCacheID %>?"
    // Format the viewer control
    rptARViewer.RulerVisible = false // Remove rulers
    rptARViewer.Toolbar.Tools.Item(3).Visible = false // Remove unwanted toolbar items
    rptARViewer.Toolbar.Tools.Item(4).Visible = false
    rptARViewer.Toolbar.Tools.Item(5).Visible = false
    rptARViewer.Toolbar.Tools.Item(6).Visible = false
    rptARViewer.Toolbar.Tools.Item(18).Visible = false
    rptARViewer.Toolbar.Tools.Item(19).Visible = false
    rptARViewer.Toolbar.Tools.Item(20).Visible = false
    if (<% = intTOCCount %> > 0) { // Show the table of contents if it exists
    rptARViewer.TOCVisible = true


    style="position: absolute; top: 10; left: 10; width: 860; height: 595">

    Thank you in advance

  • Replied 4 August 2017, 3:24 pm EST


    Could you please provide me a small stripped down sample which I can use to test this issue at my end? Unfortunately as this point of time, I am not sure about the exact cause of this problem. The only suggestion which I can offer is to make sure that you are already running the latest ActiveReports 2.0 for VB6 build.

Need extra support?

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

Learn More

Forum Channels