Jump to content

PDF Report target=BLANK is not opening a new tab

Go to solution Solved by hozawa,

Recommended Posts

I have created a PDF report with Jasper and I am opening the report in my browser and when I click on the link embedded in the report that I thought would open the link in a new tab it actually loads the link right on the tab I am on. I was hoping the target of Blank would cause the link to load in another tab (I tested this in Chrome on the Mac and IE10 on Windows 7).

From what I read in the Jasper documentation, I thought BLANK would open a new tab in my browser.


Here is my code:

   <textField hyperlinkType="Reference" hyperlinkTarget="Blank">                <reportElement x="0" y="5" width="100" height="15"/>                <textFieldExpression class="java.lang.String">"Click here"</textFieldExpression>                <hyperlinkReferenceExpression>"http://www.google.com"</hyperlinkReferenceExpression>   </textField>  [/code]

Has anyone had any luck getting this to work in PDF generated with JasperReports?

Any help would be appreciatied.


Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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...