I was wondering if there is a way to give the user the option to display a report in landscape or portrait orientation by using a report parameter.<br />
<br />
I found an article in DevShare which helped me figure out how to set the Master Page orientation from script:<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/org/devshare/designing-birt-reports/1246-set-master-page-properties-using-script/'>http://www.birt-exchange.org/org/devshare/designing-birt-reports/1246-set-master-page-properties-using-script/</a><br />
<br />
I modified the code to use the report parameter value.<br />
in the Report's beforeFactory script:<br />
<em class='bbc'>reportContext.getDesignHandle().findMasterPage("Simple MasterPage").orientation = params["reportOrientation"].value;</em><br />
<br />
How can I change the height and width of a chart on the report based on whether the user selected landscape or portrait orientation? It would be good if I could have the chart display as big as possible depending on the orientation selected, but still have the whole report print on one page only. <br />
<br />
Thank you!