Jump to content
Changes to the Jaspersoft community edition download ×

Hyperlink to an external file


arbitary

Recommended Posts

I am running JasperReports on JBoss. I need to hyperlink one of the report columns to an external file. The file is on a Unix machine, outside of my server/application setup.

 

I am trying create a 'Reference' hyperlink with this expression:

 

$P{Path}+$P{FileName}+".html" where

 

$P{Path} = home/reports/

$P{FileName} = reportFile

 

This resolves to:

 

http://www.mywebsite.com/home/reports/reportFile.html

 

but the file is not found.

 

What am I doing wrong?

 

Thanks.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I had the same problem as I wanted to put all the reports into the database. Now I think I'll put them on the file system.

 

What you can do is to retrieve the content of the external file and put it into a local tmp file which is put to jasper as a parameter.

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