在 c# Winforms 应用程序中将本地报告超链接选项设置为另一个本地 .rdlc 报告 [英] Setting local report hyperlink option to another local .rdlc report in c# Winforms application

查看:13
本文介绍了在 c# Winforms 应用程序中将本地报告超链接选项设置为另一个本地 .rdlc 报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从下面的屏幕截图窗口,我如何在我的应用程序报告文件夹中指定本地(.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 文件的完全限定名称(包括命名空间),并用引号将其括起来 - 由于它是一个表达式,因此必须以等号开头,因此类似于 ="MyCompany.MySolution.MyProject.Reporting.MyReport.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆