在C#Winforms应用程序中将本地报告超链接选项设置为另一个本地.rdlc报告 [英] Setting local report hyperlink option to another local .rdlc report in c# Winforms application
问题描述
在下面的屏幕截图窗口中,如何在我的应用程序报告文件夹中指定本地(.rdlc)报告?如果我只输入报表的名称,则超链接不起作用,当您将鼠标悬停在字段值上时,完全没有迹象表明存在超链接.
From the screenshot window below, how can i specify a local(.rdlc) report in my applications reports folder? If i just enter the name of my Report, the hyper-link doesn't work, when you hover over the field value, there is completely no sign that a hyper-link exists.
但是,如果我选择转到URL"并输入 ="http://www.mysite.co.ug/" 作为表达式,它将起作用.
But if i select Go to URL and enter ="http://www.mysite.co.ug/" as the expression, it works.
我感觉引用我的报告路径的方式出错,我想看看一个示例,其中选择了选项转到报告,并且本地.rdlc报告是指定.
I have a feeling am making an error in the way iam referencing my report path, i want to see an example in which the the option Go to report is selected and a local .rdlc report is specified.
您如何在指定报告区域中引用本地报告?
How to do you refer to a local report in Specify a Report area?
推荐答案
如果我仅输入报告的名称,则超链接不起作用
If i just enter the name of my Report, the hyper-link doesn't work
您需要在项目中指定.rdlc文件的标准名称(包括名称空间),并用引号引起来-由于它是一个表达式,因此必须以等号开头,例如
You need to specify the fully-qualified name (including the namespace) of the .rdlc file in your project, and surround it with quotes - and since it's an expression it has to start with an equal sign so something like ="MyCompany.MySolution.MyProject.Reporting.MyReport.rdlc"
works (just tested it).
这篇关于在C#Winforms应用程序中将本地报告超链接选项设置为另一个本地.rdlc报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!