Report Builder: Can I link to a specific part of a report?

自作多情 提交于 2019-12-10 16:37:49

问题


I would like to link to a specific section of a report from another report. A quick search on the internet didn't give me any suggestions, so I thought I would ask you smart folks here ;-).

I'm really looking for something like anchors in HTML but for a report.


回答1:


If you know already the page of the report you want to jump, then instead of the action "Go to report" I think you should use "Go to URL" and in the expression field insert something like:

"http://myrsserver/reportserver?http://portal/reports/sample%20reports/departmental%20sales.rdl&rs:Command=Render&rc:Zoom=Whole%20Page&rc:Parameters=collapsed&rc:DocMap=true&rc:Section=2&CategoryID=" & Fields!CategoryID.Value & "&CategoryName="& Fields!CategoryName.Value

where Section parameter is the page number.




回答2:


Use bookmarks:

https://msdn.microsoft.com/en-us/library/dd239378.aspx

Add bookmarks and bookmark links to a report when you want to provide a customized table of contents or to provide customized internal navigation links in the report. Typically, you add bookmarks to locations in the report to which you want to direct users, such as to each table or chart or to the unique group values displayed in a table or matrix. You can create your own strings to use as bookmarks, or, for groups, you can set the bookmark to the group expression.



来源:https://stackoverflow.com/questions/9874871/report-builder-can-i-link-to-a-specific-part-of-a-report

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