1

我想将 SSRS 报告字段作为查询字符串参数发送到我的应用程序页面。为此,我做了以下步骤:

要在报告中添加超链接:

In report design view, right-click the text box I want to add a link and then click Properties.

1.In the Properties dialog box, click Action.

2.Select Go to URL. An additional section appears in the dialog box for this option.

3.In Select URL, in expression that evaluates to a URL, in pasted my pages url and concatenated it with field value in the below manner.
     http://localhost:64970/InvoiceManagement.aspx?a=Fields!INVOICE_NUMBER.Value
Click OK.

但是在运行报告并单击超链接时,它很好地重定向了我,但是在查询字符串中我得到了Fields!INVOICE_NUMBER.Value,它不会被它的值(数据库值是 int)取代,它应该是发票号。

我哪里错了..

4

1 回答 1

3

您的字段被评估为文字字符串。您需要编写一个函数来生成 URL:

="http://localhost:64970/InvoiceManagement.aspx?a=" & Fields!INVOICE_NUMBER.Value

应该有一个 URL 目标的功能框,您可以在属性对话框中单击,或者您可以将功能代码粘贴到 URL 的文本中。注意:我正在使用 VS 来管理我的 SSRS 报告,我不确定这些方法对于 BIDS 是否相同,如果你正在使用的话。不过,无论哪种方式,问题都是一样的。

于 2011-12-13T19:04:58.980 回答