This is a migrated thread and some comments may be shown as answers.

Hide location of report in html source generated by MVC viewer

1 Answer 16 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jayaram Krishnan
Top achievements
Rank 1
Jayaram Krishnan asked on 14 Dec 2017, 08:41 AM

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

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 18 Dec 2017, 03:48 PM
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
Tags
General Discussions
Asked by
Jayaram Krishnan
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or