david.tessierlive.com Posted May 4, 2016 Share Posted May 4, 2016 How do I embed a static URL link to the heading of my jasper reports so that when I click the company logo (or text) at the top of every HTML report, it will open our website in a browser and take me to my company home page. I am using Jasper Report Studio 6.2.1 and hosting the reports on Jasper Server 6.2.1 Link to comment Share on other sites More sharing options...
elizam Posted May 4, 2016 Share Posted May 4, 2016 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 More sharing options...
hozawa Posted May 8, 2016 Share Posted May 8, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now