Saturday, April 5, 2014

How to configure different output format for the same report

In order to be able to produce different outputs of the same report you should use a Boolean Variable with the use of the Report-output function.

Steps

Assuming that original version of the report was already created and named 'Page 1'.

1. Add 'Page 2' to Report Pages. Perform all necessary modification to the report on 'Page 2'.
2. Add two Boolean Variables such as: 'Boolean1' ReportOutput()='HTML' and 'Boolean2' ReportOutput()='PDF'.
3. Select 'Page 1', click Ancestor in Properties pane and select Page. Double-click 'Render Variable' and select 'Boolean1'     from drop-down box and verify that 'Yes' value is checked.
4. Perform step 3 for 'Page 2' selecting 'Boolean2'.
5. Run the report in HTML format - the output should be 'Page 1' of the report.

6. Run the report in PDF format - the output should be 'Page 2' of the report.

No comments:

Post a Comment