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

How to directly link to a .pdf version of a report from an html webpage?


Recommended Posts

Hi Folks:

I'm in the process of trying to become familiar with JasperSoft.   I've created a report in JasperSoft Studio and uploaded it to the community server and it works fine.

Currently all our old reports (done in Oracle Reports) have an html link on our intranet web pages that the users click on to open (they open a pdf report in another browser tab)..

Problem:   I would like to be able to have the users click on an html link in a web page and either open or download a .pdf version of the new JasperSoft report.  If  anyone could point me in the right direction (The report can - should - be opened  without the users having to enter a username/password (It's not confidential info).

Thanks,

Matthew

P.S. Other than the users manual for JasperSoft Studio are there any other really good study guides/sites available?

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

You are at the right place for answers.

You can also check the Docs and Wiki article in this same portal. The search is not perfect but when filtered you can usually find what you are looking for.

To get specific exports from the URL just use the JasperReports Server link adding &output=pdf at the end for pdf exports.

So the sample report 9 can be seen directly in PDF format using the link (considering you are running on localhost and port 8080): http://localhost:8080/jasperserver-pro/flow.html?_flowId=viewReportFlow&standAlone=true&ParentFolderUri=%2Fpublic%2FSamples%2FReports&reportUnit=%2Fpublic%2FSamples%2FReports%2F9.CustomerDetailReport&output=pdf

Link to comment
Share on other sites

If you would like to have a link within a report, just create a hyperlink with the uri pointing to jasperreports server api with format=pdf using relative url.

http://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v630/anchors-bookmarks-and-hyperlinks

report api:

http://community.jaspersoft.com/documentation/tibco-jasperreports-server-rest-api-reference/v640/reports-service

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