matthew.friendars.usda.go Posted August 1, 2017 Posted August 1, 2017 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,MatthewP.S. Other than the users manual for JasperSoft Studio are there any other really good study guides/sites available?
Raphaël Peguet Posted August 1, 2017 Posted August 1, 2017 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
hozawa Posted August 1, 2017 Posted August 1, 2017 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-hyperlinksreport api:http://community.jaspersoft.com/documentation/tibco-jasperreports-server-rest-api-reference/v640/reports-service
matthew.friendars.usda.go Posted August 2, 2017 Author Posted August 2, 2017 I think that helps me. I'm not trying to link from within a report, just from a regular html web page. I just have to figure out how to allow it without logging in, or maybe by passing a username/password as a parameter?Thanks for the help :)Matthew
reportdev Posted August 4, 2017 Posted August 4, 2017 try to create the link in the below wayhttps://jasperadmin:password@localhost:8443/jasperserver/rest_v2/reports/reports/report_name.pdf?parameter_name=parameter_value
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