When a report is created from a view that has more than seven fields, the report is rendered with landscape orientation, such as the example shown below. When a report has less than seven fields, the report is rendered in portrait orientation.
The report orientation can also be forced to render portrait or landscape by using the “Page Orientation” property.
Let’s change the Customers report displayed above to be presented in portrait orientation.
Start the Project Designer. In the Project Explorer, switch to the Controllers tab. Double-click on Customers / Views / grid1 node.
Change the following:
|Property ||New Value |
|Page Orientation ||Portrait |
Press OK to save. On the toolbar, press Browse.
Navigate to the Customers page. On the action bar, press Report | PDF Document.
Open the PDF file that was saved to your hard drive. The report will be in portrait orientation.