I have several reports which can be printed from my application, some of which are Portrait and some of which are Landscape.
I've written the application to bring up a report selection screen where I can select each report wanted, then click the "go" button.
This causes each selected report's script to execute, one after the other.
Each script opens a new modal window, goes to the proper layout, and enters preview mode.
This works perfectly well if I only choose a single report, or only "portrait" reports, or only "landscape" reports.
However, when I choose a mix of orientations, they all come out formatted landscape. Therefore, the "portrait" reports are cut off at the bottom, with the page too wide.
I've tried putting a "page setup" step in each script, but it doesn't seem to work.
If I manually click the page setup button on one of the "bad" windows, it fixes the problem.
Is there any reason why the page setup script step doesn't take?