Create an external URL hyperlink with JasperReports

前端 未结 2 1451
天命终不由人
天命终不由人 2020-12-03 05:30

How do you include a hyperlink (URL) in a PDF that links to an external site?

Using a simple string like \"http://www.stackoverflow.com\", a link is automatically ge

2条回答
  •  醉话见心
    2020-12-03 05:54

    To make a textField a hyperlink to an external URL, you need to add the attribute hyperlinkType="Reference" to the element, and add a tag within it. The reference expression is where you put the URL.

    For example:

    
        
        
        
        
    
    

    The hyperlinkTarget attribute behaves in the same way as the target attribute in HTML.

    Note that only textFields, images, and charts can be hyperlinked in this way.

提交回复
热议问题