pacoabato Posted June 5, 2013 Share Posted June 5, 2013 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 More sharing options...
Ankur Gupta Posted June 5, 2013 Share Posted June 5, 2013 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 More sharing options...
pacoabato Posted June 5, 2013 Author Share Posted June 5, 2013 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 More sharing options...
johany_lc Posted April 30 Share Posted April 30 Hi.. Did you find any alternative to do what you need? I need open .bat file from the pdf hyperlink... please help me Thank you Link to comment Share on other sites More sharing options...
shreekrishna.shankhwar Posted May 1 Share Posted May 1 using anchor is not helping you can use create use html markup property if that help you. create <a href=""> </a> tag inside text field. 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