Jump to content
Changes to the Jaspersoft community edition download ×

How do I add a static link to a jasper report


Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You can set the hyperlink property on your text field.  Here is a hyperlink from the HyperlinkReport.jrxml example:

<textField hyperlinkType="Reference" hyperlinkTarget="Blank">     <reportElement x="5" y="95" width="200" height="15" uuid="773ef7f6-735d-47f7-8b16-d8136c5da1d3"/>     <textFieldExpression><![CDATA["  >> Click here to go to www.google.com"]]></textFieldExpression>     <hyperlinkReferenceExpression><![CDATA["http://www.google.com"]]></hyperlinkReferenceExpression></textField>

Link to comment
Share on other sites

Static Text element doesn't support hyperlink so you'll have to use Text Field and just enter your company name as a value.

In the Properties, there should be "Hyperlink" tab. If you don't see it, try increasing the width of the Properties - it should be next to Advanced.

Hyperlink is also supported on image too. There should be a "Hyperlink" tab.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...