Jump to content
We've recently updated our Privacy Statement, available here ×

Hyperlinks inside a PDF file are only opened in web browser


pacoabato

Recommended Posts

Hello,

I generate a PDF file with hyperlinks pointing to local files. This files are all of them (.txt, .pdf, .log, etc) opened in the web browser when clicked.

Is there any option to open this files in the default system application linked to their extension? i.e. if I click on a hyperlink to a txt file I want this file to be opened in the text editor instead of the web browser.

I'm using iReport 4.1.2 and jasperreports-4.1.2. The hyperlinks are created with "Reference" hyperlink type and no other option set.

 

Thank you all.

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Hi pacoabato ,

 

What you can do is that you can mention the Anchor Name Expression and the type of the hyperlink you should be using should be selected as Local Anchor.

Then you could navigate through the local pdf's in the same viewer.

 

For more information you could go through the following link.

http://jasperreports.sourceforge.net/sample.reference/hyperlink/

Though its for the latest version Jasper Report but this feature remains unchanged so for example you could use the above link.

Hope that it helps.

Thanks,

Ankur

Link to comment
Share on other sites

Thanks for your answer. I think Local Anchor only works for pdf files. I want a .txt or .odt file (which is pointed in my pdf file by a hyperlink) to be opened into the text editor. And so on with any file type registered in the operating system.
Link to comment
Share on other sites

  • 10 years later...

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