7.10.2  Associating a Page Area with a Report Element

To change the page layout in the middle of an element, use an element-associated page area, which allows you to associate a page layout with a particular element. The following example is saved as layout2.srt in the examples\docExamples\design directory.

Preview the layout2.srt report, and observe the problem: The third page of the report uses the same page areas as the second page, which creates an undesirable break in the middle of the table.

To overcome this problem, use an element-associated page area to change the page layout in the middle of the table element. When you associate a page area with an element, the page areas are set up according to the following rules:

If the element is the first element on a page and there is no 'default' set for that page, the associated page areas are used on the current page.

If the element is not the first element on a page, or there is a 'default' set for that page, the associated page areas are used on the next page.

To add an element-associated page area for the table in this example, follow these steps:

1. Click the 'Layout View' button in the Style Studio toolbar.

2. Click the 'Layout View' button in the Style Studio toolbar, and select the 'Edit' option. This opens the 'Edit Target' dialog box.

 

3. From the menu in the 'Edit Target' dialog box, select 'Table1' as the target element.

4. Click the 'Add' button to add 'Table1' to the list, and then click 'OK'.

 

5. Click the 'Layout View' button in the Style Studio toolbar again, and select the 'Table1' option.

 

This updates the layout view to show the page areas defined for the 'Table1' element. However, because you have not yet defined any page areas, no page areas are displayed in the layout view.

6. Click the 'Draw Area' button. Draw a page area that covers the whole page.

 

7. Click the 'Layout View' button again to return to the design view.

The revised report is saved as layout3.srt in examples\docExam­ples\design.

8. Preview the report. Observe that 'Table1' is now displayed correctly.

 

<< 7.10.1 Adding a New Page Area © 1996-2013 InetSoft Technology Corporation (v11.5) 7.10.3 Non-Flow Page Areas >>