简体   繁体   English

如何在 SSRS 2005 报告的每一页上放置超链接?

[英]How do I place a hyperlink on every page of a SSRS 2005 report?

I am building a SSRS 2005 report that has potentially multiple pages.我正在构建一个可能有多个页面的 SSRS 2005 报告。 I would like to put in a hyperlink so that it appears on the top of every page.我想放入一个超链接,以便它出现在每一页的顶部。 The hyperlink links back to the same report - basically I have a "summary" and "detail" mode and want to have hyperlinks to switch between.超链接链接回同一个报告 - 基本上我有一个“摘要”和“详细”模式,并且希望有超链接可以在它们之间切换。
So far I tried two approaches:到目前为止,我尝试了两种方法:

  • Put a textbox in the body, and in Properties -> Navigation, jump to a report.在正文中放置一个文本框,然后在 Properties -> Navigation 中跳转到报告。 This works fine except it only shows on the very first page.这很好用,只是它只显示在第一页上。
  • Drag the same textbox in the header of the report.在报表的 header 中拖动相同的文本框。 Now it appears on every page, but clicking on it results in an error message: "The source of the report definition has not been specified".现在它出现在每个页面上,但单击它会导致错误消息:“尚未指定报告定义的来源”。

google turned up nothing, what now?谷歌什么也没发现,现在怎么办?
Thanks.谢谢。

The best way to do this is to implement the summary report to drill-down into the detail report and use the data on the detail row of the summary report's table to access the detail of that row as a detailed report.执行此操作的最佳方法是实施汇总报告以深入了解详细报告,并使用汇总报告表的详细信息行上的数据来访问该行的详细信息作为详细报告。 For example, let's assume the summary report is a list of invoices with total billed, and the detail report shows the items that were on that invoice.例如,假设摘要报告是发票总额的列表,详细报告显示该发票上的项目。

  1. Right-click the InvoiceNumber field in the detail row of the table and choose Properties右键单击表详细信息行中的 InvoiceNumber 字段,然后选择 Properties
  2. Click the Navigation tab单击导航选项卡
  3. Click the Jump to report radio button and select the detail report from the drop down list单击跳转到报告单选按钮和 select 下拉列表中的详细报告
  4. Click the Parameters button and fill in the parameter name and value - in this example, the parameter name might be InvoiceNumber and the parameter value would be =Fields.InvoiceNumber.Value单击“参数”按钮并填写参数名称和值 - 在本例中,参数名称可能是 InvoiceNumber,参数值可能是 =Fields.InvoiceNumber.Value
  5. Click OK twice and you now have a hyperlink from the summary report to the detail report where the user can drill-down to get the detail of each invoice单击“确定”两次,您现在有一个从摘要报告到详细报告的超链接,用户可以在其中向下钻取以获取每张发票的详细信息
  6. Its also good to give a visual indication that this is a hyperlink so I set the Color to MediumBlue给出一个超链接的视觉指示也很好,所以我将颜色设置为 MediumBlue

If you just want to link directly to the complete detail report from the summary report and vice versa, you can use the same style on navigation settings but this time do it on a textbox on the header row of your table and make sure that the header has the RepeatOnNewPage property set to True so that it appears on every page.如果您只想从摘要报告直接链接到完整的详细报告,反之亦然,您可以在导航设置上使用相同的样式,但这次在表格的 header 行的文本框上执行此操作,并确保 header将 RepeatOnNewPage 属性设置为 True,以便它出现在每一页上。

To make your report go back to the home page让您的报告 go 返回主页

  1. Right-click the Title field in the detail row of the table and choose properties右键单击表格详细信息行中的标题字段并选择属性
  2. Click the Navigation tab单击导航选项卡
  3. Click the Bookmark ID and type ="Home" Click OK twice now have a hyperlink to the home page单击书签 ID 并键入 =“主页” 单击确定两次现在有一个指向主页的超链接
  4. Place a text box on where pages are being created then right click on it and choose properties在正在创建页面的位置放置一个文本框,然后右键单击它并选择属性
  5. Click the Navigation tab单击导航选项卡
  6. Click the Jump to report radio button and put ="Home" Click OK twice单击 Jump to report 单选按钮并输入 =“Home” 单击 OK 两次
  7. type the word Home in the box在框中键入单词 Home

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

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