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"
1 Answer, 1 is accepted
answered on 18 Dec 2017, 03:48 PM
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.
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?
Telerik Feedback Portal
and vote to affect the priority of the items