Dynamic Page Setup


1

2

3

1. Unit Objectives

In this unit we will use page check to dynamically change the header presentation objects. Page check logic, to determine if it is an odd number page, will be used to drive the behavior of the header and the Background behavior will be driven by page check range logic.

page 1


page 2


page 3


 

2. Import RTF

In this section we will import a multi-page RTF. You will see some more aspects of RTF that can be imported - tables, page breaks, and styles.

  1. 1. In the logic map, make your insertion point after Paragraph (New Account Manager).
  2. 2. From the main menu, select Insert / Control Objects / New Page.
  3. 3. In the label box, type New Page.
  4. 4. In the Header radio buttons, select Show.
  5. 5. In the Footer radio buttons, select Show.

 

  1. 6. Click Create.

Now we’ll import the RTF.

  1. 1. From the main menu, select Insert / Presentation Objects / RTF.
  2. 2. Navigate to the resources folder.
  3. 3. Select Form.rtf.
  4. 4. Click Open.

 

3. Page Check for Header

In this section we will create a condition that checks for an odd page number. If the number is odd the page header will stay the same, but if the page number is even the contents in the header will be flipped.

  1. 1. In the logic map, right-click, ensure View Page Setup.
  2. 2. In the logic map, mark your insertion point at Default Header logic <Insert object here>.
  3. 3. From the main menu select Insert/ Control Objects/ Condition/ Page Check.
  4. 4. Label, type, Flip Header.
  5. 5. Type, click, Document radio button.
  6. 6. Highlight, Formula, Odd.
  7. 7. Click Create.

We have created the page check condition now we are going to drag the Bundle (Header Objects) under the True Result.

  1. 1. In the logic map click and drag Bundle (Header Objects) on to the True Result <Insert object here>.

In the False Results we will flip the header content. Therefore even pages will have the image placed to the right and the address to the left. We are going to copy and paste the current Bundle header and move around the objects.

  1. 1. In the logic map under the True Result, right-click the Bundle (Header Objects).
  2. 2. Select Copy.
  3. 3. In the logic map, right-click False Result <Insert object here>.
  4. 4. Select Paste.

In order view the object we are placing in the False Result, we are going to force the condition to False. First we are going to flip the position of the image.

  1. 1. In the logic map right-click the Page Check (Flip header) logic.
  2. 2. Select Force, False.
  1. 3. Click on the image in the header.
  2. 4. From the main menu select Format/Shape.
  3. 5. Select the Layout tab.
  4. 6. Flow, click Anchored radio button.
  5. 7. Click the Left runaround icon.
  6. 8. Set the Align Right.
  7. 9. Click OK.

    so far:

Next we are going to flip the position of the address.

  1. 1. Highlight the whole address.
  2. 2. Click the Align Left icon.
  3. You can reset the page check by right-clicking the Page Check (Flip header) logic, select Force/ Reset.

so far:

 

Final pages:

page 1


page 2


page 3