jasonp_1 Posted May 31, 2013 Share Posted May 31, 2013 I uploaded a PDF document to the JasperReports Server as a Content Resource. When I browse the repository, I can view it just fine. Now what I want to do is add a hyperlink in a report that opens up the PDF file in another window. The URL that is generated when I click on the document looks like this:https://MYSERVER/jasperserver-pro/fileview/fileview/organizations/10203/Productivity_Reporting/Reports/Productivity_User_Guide?I tried to create a hyperlink with a type of Reference and used the URL above. However, when I run my report and click on the link, I get a generic error "Internal server error occurred. Please contact your system administrator." There is no error number or details. I also tried to use the ReportExecution hyperlink type but it generates an invalid uri message. How should content resources be referenced in a hyperlink? Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted May 31, 2013 Share Posted May 31, 2013 possibly the extension ".pdf" is missing?i tried and works fine for me...Cheers, Thomashttp://www.thomaszimmer.net Link to comment Share on other sites More sharing options...
jasonp_1 Posted May 31, 2013 Author Share Posted May 31, 2013 I think the ".PDF" would only be required if the resource ID contained it, which is the default behavior, but I removed it from the ID. I'm thinking the issue is related to the fact that I am running in multi-tenancy mode, which is why my path includes the "organizations/...", so I may have the path wrong. There is very little information on how the paths change when running multi-tenancy. Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted May 31, 2013 Share Posted May 31, 2013 After "organizations/..." you have to put the unique id of your organization, then the path. Like this: .../fileview/fileview/organizations/Organization_2/Reports/Samples/Employees.pdf? And you were absolutely right about the file extension, it is not needed. Greetz 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