在水晶报表的新窗口中打开链接 [英] Open the link in new window in crystal report

查看:14
本文介绍了在水晶报表的新窗口中打开链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有水晶报告.有包含超链接的列.我希望每当单击该链接时,该页面应在新窗口中打开.所有这些都应该在水晶报表中完成.

I have crystal report. There is the column containing the hyperlink. I want whenever click that link that page should open in new window. All this should be done in crystal reports.

我可以得到任何帮助吗?

Can I get any help?

推荐答案

您的字段包含一个 URL,如果您想将该 URL 作为水晶报表中的超链接,可以这样做.

考虑以下示例报告,其中包含搜索引擎的名称及其链接



现在您的要求是通过单击 www.google.com 打开 Google.
右键您要制作超链接的字段,然后选择Format Field.
您将获得如下图所示的格式编辑器.选择 Hyperlink 选项卡并选择 Hyperlink Type 作为 A Website on the Internet
选择超链接信息中的公式字段,然后使用其中包含 URL 的列并保存公式.现在按 OK 并预览报告.



当您按下字段时,您可以看到链接打开.您还可以更改字段的字体颜色以显示为 LINK.

Your Field contains a URL and if you want to make that URL as hyperlink in crystal report, it can be done.

Consider the following sample report, which contains search engine's names and their links



Now your requirement is to open Google by clicking www.google.com.
Right Click the field which you want to make Hyperlink, and select Format Field.
You will get the Format Editor as like the following image. Select Hyperlink tab and select Hyperlink Type as A Website on the Internet
Select the formula field in Hyperlink Information and use your column which has URL in it and save formula. Now press OK and Preview the report.



You could see the link opens when you press the Field. You can also change the font color of the field to show that is a LINK.

编辑
{link}+'?sWindow=New'
在链接后使用 '?sWindow=New' 可能会打开链接新选项卡
试试这个,然后返回结果!

EDIT
{link}+'?sWindow=New'
Using '?sWindow=New' after your link may open your link new tab
Try this and get back with your results !

这篇关于在水晶报表的新窗口中打开链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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