Unable to View reports in AR14 JSViewer

Posted by: pooja.srivastava on 5 March 2024, 8:22 pm EST

    • Post Options:
    • Link

    Posted 5 March 2024, 8:22 pm EST - Updated 5 March 2024, 8:30 pm EST

    Hi,

    I am using the trial version of Active Reports 14 and JSViewer to render a report. The report is the same one as available in the sample codes. When I try to open the report, I see an error “Report not found:RdlReport1.rdlx”. Report is available in the reports folder and I have also made changes in the Startup.cs to use the file store .

    app.UseReporting(settings =>
                {
                    settings.UseEmbeddedTemplates(EmbeddedReportsPrefix, Assembly.GetAssembly(GetType()));
                    settings.UseCompression = true;
                    settings.UseFileStore(new System.IO.DirectoryInfo(@"**<<absolute path of the directory>>**\JSViewerMVCApplication1\JSViewerMVCApplication1\Reports"));
                });


    Attached are the screenshots of the code and error.

    Please advise if I am missing any step.

  • Posted 6 March 2024, 10:45 pm EST

    Hi Pooja,

    It would be difficult to comment upon the exact cause of the issue without going through a sample replicating the issue, could you please share a minimal sample that replicates the issue so we can test the same on our end and further investigate the issue.

    Thanks,

    Anand

  • Posted 10 March 2024, 4:56 pm EST

    Hi,

    PFA the sample code.

    JSViewerMVCApplication1.zip

  • Posted 11 March 2024, 8:44 pm EST - Updated 11 March 2024, 8:49 pm EST

    Hi Pooja,

    Unfortunately, we were unable to open your project due to the attached error (refer to the attached image). However, as you have specified ‘EmbeddedReportsPrefix’ you can remove the ‘UseFileStore’ option and place your reports into the ‘Reports’ folder with their ‘Build Action’ set to ‘Embedded Resource’ that way you’ll be able to load your Report directly into the viewer.

    However, if the issue persists please try sharing a stripped-down runnable sample which we can replicate on our and to further investigate the issue.

    Regards,

    Anand

  • Posted 12 March 2024, 1:04 am EST

    I think I understand what is causing the “Report not found” error. Application is trying to look for the report info using the url https://localhost/api/reporting/reports/billinginvoice.rdlx/info whereas the correct path should be https://localhost/**JSViewerMVCApplication1**/api/reporting/reports/billinginvoice.rdlx/info. I created a virtual directory and did not deploy application under https://localhost.

    Am I missing some configuration here?

  • Posted 12 March 2024, 8:31 pm EST

    Hi Pooja,

    If you have a different Reporting Service URL then you can specify your full URL in the ‘ReportService.url’ property, you can learn more about the same here JSViewer API.

    Regards,

    Anand

Need extra support?

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

Learn More

Forum Channels