Purchase your Section 508 Compliance Support guide now!

Purchase your Section 508 Compliance Support guide now!

Cognos 8 Report Studio --- dynamically set print out options in url

If you have the requirement to execute several reports from a URL and need the ability to specify the page size of the report or change the orientation then you can use the following url as an example to modify the settings.

Add the following parameters at the end of the URL for pdf and for landscape:

&run.outputFormat=PDF&run.outputPageOrientation=landscape

The URl value would look something like this:

http://localhost/c8mr2/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/report-viewer.xts&ui.action=run&ui.object=%2fcontent%2fpackage%5b%40name%3d%27GO%20Sales%20and%20Retailers%27%5d%2freport%5b%40name%3d%27Rank%20Revenue%20by%20sales%20rep%20and%20product%20line%27%5d&run.outputFormat=PDF&run.outputPageOrientation=landscape

or you can also add:

(outputPageDefinition)=legal



--
Thank you.

BI Centre