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

JasperServer default XLS Export


leonardomartinez

Recommended Posts

Hi, I have a report in JasperServer embedding via iFrame like this:

<iframe height=100% width=100% seamless id="frame1" name="frame1" frameborder="0" marginheight="0" marginwidth="0" src="server:port/jasperserver/flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=%2Freports&reportUnit=%2Freports%2FReporte_Ventas_Cliente_Under_Armour_Mexico&j_acegi_security_check&j_username=jasperadmin&j_password=jasperadmin&decorate=no</cfoutput>">

Ant that give me the standard view of jasperserver where I can export to pdf, xls, etc,  but i'd like to access direct to xls view, is there a way for accomplish it?

 

Thanks.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Yes to get direct access to a specific report output you can set the ourput parameter in the HTTP API call so something like this:

http://localhost:8080/jasperserver-pro/flow.html?_flowId=viewReportFlow&reportUnit=%2Fpublic%2FSamples%2FReports%2FAllAccounts&output=xls

You can also use the REST API (see the doc in the Webservices Guide http://community.jaspersoft.com/documentation/tibco-jasperreports-server-web-services-guide/v60/running-report) the call will look somethig like this:

http://<host>:<port>/jasperserver[-pro]/rest_v2/reports/reports/samples/Cascading_multi_select_report.xls? Country_multi_select=USA&Cascading_state_multi_select=WA&Cascading_state_multi_select=CA

I think that from the HTTP APi there is an outputformat param but I'm not sure

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