Jump to content

Jasperreports “page” request parameter is accepted in POST(regenerating report) but returns full report on GET


tonyy

Recommended Posts

Say I have document which has 38 pages. I want a request that would just retrieve one page from this report. At the moment after specifying the page number to get the specific page I get full document instead...

 

POST

 

http://servername:port/jasperserver/rest/report/78f16c70-03cc-4fd6-b835-d1fe0ed40d99?PAGE=20&RUN_OUTPUT_FORMAT=PDF

When running this, for some reason it will accept the page parameter , it will even validate it if the page number supplied is within the range but return full document as I said.

 

The return is 201 and:

 

<?xml version="1.0" standalone="no"?>

78f16c70-03cc-4fd6-b835-d1fe0ed40d99

/reports/CustomersReport

39

1

39

report

 

which is different to documentation where it says:

 

For example, the following request exports page 10 of the PDF report:

 

POST http://host/rest/report/d7bf6c9-9077-41f7-a2d4-8682e74b637e?PAGE=10&RUN_OUTPUT_FORMAT=PDF

 

You then need to take the file name from the return value and create a GET request for it.

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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