Hide location of report in html source generated by MVC viewer

2 posts, 0 answers
  1. Jayaram Krishnan
    Jayaram Krishnan avatar
    19 posts
    Member since:
    Apr 2017

    Posted 14 Dec 2017 Link to this post

    Hi,

    The MVC viewer ReportSource Uri will expose the physical path of the report in the html source.Is there a way to hide this info?

     

    Uri = Server.MapPath("~/ReportFiles/VehicleMaintenanceReport.trdp")

    This would produce the following viewer options in the html:

    "report":"D:\\My Documents\\Visual Studio 2013\\Projects\\MyProject\\ReportFiles\\VehicleMaintenanceReport.trdp"

     

    Thanks

    Madani

  2. Todor
    Admin
    Todor avatar
    397 posts

    Posted 18 Dec 2017 Link to this post

    Hello Madani,

    The Telerik Reporting HTML5ReportViewer (and its wrappers for different frameworks, ASP.NET MVC among them) uses Telerik Reporting REST Service or Telerik Report Server to provide reports that are processed and rendered server side.

    The ReportSource property of the ReportViewer provides (and exposes) the relative path to the specific report to be rendered and displayed.

    For resolving .trdp/x reports the REST Service uses the built-in ReportFileResolver, which constructor takes as an argument the physical path to the report definitions. If no argument is provided in the constructor, the relative paths will be resolved against the application root. The physical storage (by default it is (application folder)\Reports) is provided in the configuration of the REST Service (for MVC project with embedded REST Service by default this is (application folder)->Controllers->ReportsController) and is not visible in the html that is rendered client side.

    Regards,
    Todor
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top