Cannot find telerikReportViewer file

1 Answer 68 Views
.NET Framework Report Viewer - ASP.NET Report Viewer - HTML5
Ryan
Top achievements
Rank 1
Ryan asked on 10 Sep 2024, 04:46 PM | edited on 10 Sep 2024, 04:55 PM

I'm upgrading all of the Telerik packages in an application to the latest version. The final piece is to get ahold of the files telerikReportViewer.kendo-18.2.24.806.min.js and telerikReportViewer-18.2.24.806.min.js.

I've tried following the instructions to use the CDN: Using CDN - Download and Installation - Kendo UI for jQuery (telerik.com). I'm not finding these files there. 

I also read this article: HTML5 Report Viewer Requirements and Browser Support - Telerik Reporting. It states that these files are served by default from the Telerik Reporting REST Service, but I'm having a hard time understanding the process of actually getting them. 

It seems that, for the previous version, we had local copies of these files in our project. I'm not sure where we got them from. Can anyone provide instructions on where to find these files? 

1 Answer, 1 is accepted

Sort by
1
Accepted
Lance | Senior Manager Technical Support
Telerik team
answered on 10 Sep 2024, 09:01 PM

Hi Ryan,

The approach you're describing, where you individually reference specific files, is only for older versions of the HTML5 ReportViewer. We no longer require this kind of resource management.

Instead, all you need to do is point to the folder location of the Reporting REST service and the ReportViewer does the heavy lifting of looking for the correct resource files it needs.

<script src="/api/reports/resources/js/telerikReportViewer"></script>

You should be doing this in the <head> of the app, but it could also be done on the page where the ReportViewer lives. 

For a real-world example, see how I do it here => https://github.com/LanceMcCarthy/DevOpsExamples/blob/3fd2dacbaa3b73a658793740d1b64276d48126d0/src/AspNetCore/MyAspNetCoreApp/Views/Shared/_Layout.cshtml#L22 

To wrap this up, I'll try to simplify my answer in two bullets points:

  • Remove any direct paths to older js files for the ReportViewer (those are the wrong version and old approach)
  • Add a path to the reportViewer resources directory (the script tag in my code example above)

Please let me know if you have any further questions.

 

Side Note: If the application is not also the host of the Reporting REST service, then you must complete the rest of the URL for the path. For example, if it is a Report Viewer that is pointing to a Report Server installation somewhere else, then you follow these directions Using HTML5 Report Viewer with Telerik Report Server - Telerik Reporting.

Regards,
Lance | Senior Manager Technical Support
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
.NET Framework Report Viewer - ASP.NET Report Viewer - HTML5
Asked by
Ryan
Top achievements
Rank 1
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or