jasperreport生成pdf_jasperreport 导出excel_jasperreport json(58)

电脑杂谈  发布时间:2017-02-04 10:28:36  来源:网络整理

document or to an external resource to which the viewer of the document will be redirected if he or she

clicks on that particular hyperlink element.

Hyperlinks are not the only actors in this viewer-redirecting scenario. There has to be a way for you to

specify what are the destinations in a document. These local destinations are called anchors.

The JasperReports Ultimate Guide

Page 61

There are no special report elements that introduce hyperlinks or anchors in a report design, but rather

some special setting that make an usual report element to be a hyperlink or/and an anchor.

In JasperReports, only text field elements and image elements can be hyperlinks or anchors. This is

because for both types of elements, there are special settings that allow you to specify the hyperlink

reference to which the hyperlink will point or the name of the local anchor. Note that a particular text

field or image can be both anchor and hyperlink at the same time.

XML Syntax

<!ELEMENT anchorNameExpression (#PCDATA)>

<!ELEMENT hyperlinkReferenceExpression (#PCDATA)>

<!ELEMENT hyperlinkAnchorExpression (#PCDATA)>

<!ELEMENT hyperlinkPageExpression (#PCDATA)>

Hyperlink Type

When presenting the XML syntax for text field elements and image elements, you probably saw that

there was an attribute called hyperlinkType, which we didn't explain at that moment. We are going

to do that right now and here are the possible values for this attribute along with their significance:


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-30468-58.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 秋谷智子
      秋谷智子

      海不会不蓝

    • 李晓弘
      李晓弘

      用过小米电源的真心不错

    • 慈恩寺沙
      慈恩寺沙

      我心情非常不好需要动真格的时候到了

    热点图片
    拼命载入中...