Active reports Js in aspx application

Posted by: gcastellini on 8 April 2024, 11:38 am EST

    • Post Options:
    • Link

    Posted 8 April 2024, 11:38 am EST - Updated 8 April 2024, 12:07 pm EST

    Hello I’d like to know if it’s possible to use active reports Js in an aspx application.

    I’m trying to use the viewer component but I’m receiving this error:

    Report “Report.rdlx-json” is invalid: Unexpected token ‘<’, " <!DOCTYPE "… is not valid JSON

    I tried in another application from scratch and I am getting this error:

    Report “report.rdlx-json” is not available: 404 -

  • Posted 9 April 2024, 6:31 am EST

    Hi Gabriel,

    You can definitely use the ActiveReportsJS Report Viewer in an ASPX application. The errors you’re observing typically occur when the viewer is unable to locate the report file and its contents from the server. To address this, we’ve implemented the GetReportData() method. This method reads the contents of the .rdlx-json report file and returns it as a JSON string to be displayed in the viewer.

    You may refer to the attached sample application to embed the ActiveReportsJS Report Viewer into an ASPX application and load a .rdlx-json report file into it.

    Also, please refer to the attached documentation link for detailed information about using ActiveReportsJS Report Viewer JavaScript Component: Get Started with ActiveReportsJS Report Viewer JavaScript Component

    P.S., make sure to adjust the report file’s path according to your application. If you have any further questions or need assistance, feel free to reach out to us!

    Attachment: ARJS_ASPXSample.zip

  • Posted 10 April 2024, 8:23 am EST

    Hi katyayny,

    Thank you for your response I was able to resolve my problem.

  • Posted 10 April 2024, 11:01 pm EST

    Hi Gabriel,

    We’re delighted to hear that your issue has been resolved!

Need extra support?

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

Learn More

Forum Channels