如何在水晶报表中插入条件超链接

发布于 2024-12-06 01:04:54 字数 461 浏览 1 评论 0原文

我有水晶报表,我想将一个字段修改为超链接,具体取决于另一个字段。但其他字段可能有数据,也可能没有数据。如何定义该字段?

字段:IDNumber、LinkField

如果 LinkField 不为 NULL,则将 IDNumber 显示为其自身值,并为 LinkField 设置下划线和超链接。 如果 LinkField 为 NULL,则仅显示 IDNumber 本身,不带超链接。

因此,如果报告具有三个 IDNumber,并且只有第二个具有超链接,以数据 (3455, NULL; 4933, http://nothing; 4939 , NULL)

它看起来像下面这样:

3455

4933

4939

I have Crystal reports, and I'd like to modify a field to be a hyperlink, depending on another field. But the other field may or may not have data. How do I define the field?

Fields: IDNumber, LinkField

If LinkField is not NULL, show IDNumber as its own value, with a underline and hyperlink set to LinkField.
If LinkField is NULL, then just show IDNumber as itself, with no hyperlink.

So, if the report had three IDNumbers, and only the second had a hyperlink, starting with data (3455, NULL; 4933, http://nothing; 4939, NULL)

It would look something like the following:

3455

4933

4939

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

将军与妓 2024-12-13 01:04:54

我可以创建一个具有值的字段和另一个带有超链接的字段。超链接字段被抑制,但位于带有值的字段顶部。这在 Crystal Developer 中可以工作,但当它移动到我们的服务器时就不行了。

由于空间不足,我尝试仅显示链接的一部分。这在开发和服务器上都有效,但我最终希望将文件打印为 PDF 并保留链接。 PDF 中的链接只有完整显示才有效。

我最终不得不在报告中显示整个链接,并为其单独一行(以腾出空间)。 (我还尝试以 1 点字体打印它,这确实使它看起来像下划线,但很难点击,而且仍然覆盖了字段。)

I could make a field that had a value and another field with the hyperlink. The hyperlink field was suppressed but on top of the field with the value. That worked from within Crystal Developer, but not when it was moved to our server.

Since I was short of space, I tried displaying just part of the link. That worked both in development and on the server, but I was ultimately wishing to print the files to PDF and maintain the links. The links in the PDF only worked if they showed entirely.

I eventually had to show the entire link in the report, giving it a separate line (to make room). (I also tried printing it in 1 point font, which did make it look like an underline, but that was hard to click on and also still overwrote fields.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文