how to set Reportviewer controls report server Url and report path properties in asp.net

纵饮孤独 提交于 2020-01-16 04:10:09

问题


I m trying to use ReportViewer control in VS2013 to display a report from a SSRS server. The full path to the report URL is like below and I can access report by typing the path in browser

http://vm-xx-xxxx/Reports/Pages/Report.aspx?ItemPath=%2fname+xxx+And+xxx%2fWorkOrder+UAT

I have tried various combinations to set the ReportServerUrl and ReportPath properties but nothing seems to work.

e.g. ReportPath="/Reports/Pages/Report.aspx?ItemPath=%2fxxx+xxx+And+xxx%2fWorkOrder+UAT and the ReportServerUrl="http://vm-xx-xxxxx"

Any ideas how to fix this? thanks


回答1:


Try using:

ReportServerUrl="http://vm-xx-xxxxx/reportserver"
ReportPath="/xxx+xxx+And+xxx/WorkOrder+UAT"

Configuring ReportViewer for Remote Processing



来源:https://stackoverflow.com/questions/30172721/how-to-set-reportviewer-controls-report-server-url-and-report-path-properties-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!