简体   繁体   English

如何在 SSRS 报告中将整行设置为超链接?

[英]How can i set entire row as hyperlink in SSRS report?

I have created SSRS report which has multiple column like date, time , location, note fields & group by meeting-name.我创建了 SSRS 报告,它有多个列,如日期、时间、位置、注释字段和按会议名称分组。

On date field, i have created hyperlink to open another report of document related to particular meeting.在日期字段上,我创建了超链接以打开与特定会议相关的另一份文件报告。

Now i want to set hyperlink on entire row in SSRS report to open another report.现在我想在 SSRS 报告中的整行上设置超链接以打开另一个报告。

It is not possible using the built in SSRS controls to have a row click take you to another report, however, there are hacks.不可能使用内置的 SSRS 控件让行单击将您带到另一个报告,但是,有一些技巧。 Unless you want to spend a lot of time getting things right, I would suggest just scaling back your requirements on this ;)除非你想花很多时间把事情做好,否则我建议你只需要缩减你对此的要求;)

Modify ReportingServices.js修改 ReportingServices.js

This is a complete hack .这是一个完整的黑客 This file resides in the Reporting Services installation folder on the server and is loaded by the ReportViewer control to render server side reports.此文件位于服务器上的 Reporting Services 安装文件夹中,并由 ReportViewer 控件加载以呈现服务器端报告。 You could add some semantics there to customize and extend functionality in your reports.您可以在那里添加一些语义来自定义和扩展报告中的功能。 Here is a little more detail and an example of this method. 这里有更多细节和此方法的示例。

Modify PageThatContainReportViewer.aspx修改 PageThatContainReportViewer.aspx

You can add Javascript code to the page that contains the report viewer.您可以将 Javascript 代码添加到包含报表查看器的页面。 Since JavaScript will call up for functions then js you place in your root page will be reachable by your report.由于 JavaScript 会调用函数,因此您的报告可以访问您放置在根页面中的 js。 Also, you can interact with the report contents once the report is rendered in the viewer, again, a complete hack .此外,一旦在查看器中呈现报告,您就可以与报告内容进行交互,这也是一个完整的技巧

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM