Choosing output format from prompt
From all of the above recipes, you must have understood now that reports need to be generated in PDF format for printing purpose.
The default output format is HTML which is good for interactive reports with drill-down and drill-throughs. However, it is not printer friendly. They would see one page of output at a time with navigation links at the bottom of the screen, and hence printing the whole report is not straight-forward. For printing, users need to run the report in PDF format. Clicking on the PDF icon resubmits the report query and users have to wait for the execution to finish.
It will be handy to control the report output from prompt page. In this recipe, we will add a prompt control which asks users to specify the output format. This way, users can think of the application (interactive, printing, analysis, and so on) and decide whether the output should be HTML, PDF, Excel, or something else.
Getting ready
We will use the list report created in the...