About this article
This article will explain what Page setup is and how it can be used from Dynamics designer. Sections in this article:
Prerequisites
|
What is Page setup?
Page setup is for controlling the settings found in Layout->Page Setup statically using text or dynamically using the binding syntax.
How to set Page Setup?
- Open Templafy task pane in your Office application
- Go to the ellipsis menu in the task pane and click on
Dynamics Designer
- Go to the
Document
tab - Select
Page Setup
- Click the
+
button
Settings available
- Top Margin
- Right Margin
- Bottom Margin
- Left Margin
- Gutter
- Gutter Position
- {{GutterPosition.Left}}
- {{GutterPosition.Right}}
- Orientation
- {{Orientation.Portrait}}
- {{Orientation.Landscape}}
- Paper Width
- Paper Height
- Header From Edge
- Footer From Edge
Examples of using Page setup
Example 1
Statically set a standard A4 page layout.
Top Margin | "2.54 cm" | ||
Right Margin | "2.54 cm" | ||
Bottom Margin |
"2.54 cm" |
||
Left Margin | "2.54 cm" | ||
Gutter | "0 cm" | ||
Gutter Position | {{GutterPosition.Left}} | ||
Orientation | {{Orientation.Portrait}} | ||
Paper Width | "21 cm" | ||
Paper Height | "29.7 cm" | ||
Header From Edge | "1.25 cm" | ||
Footer From Edge | "1.25 cm" |
Example 2
Statically set a standard Letter(US) page layout.
Top Margin | "2.54 cm" | ||
Right Margin | "2.54 cm" | ||
Bottom Margin |
"2.54 cm" |
||
Left Margin | "2.54 cm" | ||
Gutter | "0 cm" | ||
Gutter Position | {{GutterPosition.Left}} | ||
Orientation | {{Orientation.Portrait}} | ||
Paper Width | "21.59 cm" | ||
Paper Height | "27.94 cm" | ||
Header From Edge | "1.25 cm" | ||
Footer From Edge | "1.25 cm" |
Example 3
Set a static A4 page layout but use a dropdown form field to allow the user to select the page orientation. A data source has been created with 3 columns and 2 rows. The 3 columns are Name
, PaperWidth
and PaperHeight
. The two rows have the Name
column as "Portrait" and "Landscape" with respective widths and heights. The orientation will automatically be set by Word.
The Page Setup settings are then as follows.
Top Margin | "2.54 cm" | ||
Right Margin | "2.54 cm" | ||
Bottom Margin |
"2.54 cm" |
||
Left Margin | "2.54 cm" | ||
Gutter | "0 cm" | ||
Gutter Position | {{GutterPosition.Left}} | ||
Orientation | {{Orientation.Portrait}} | ||
Paper Width | {{Form.Orientation.PaperWidth}} | ||
Paper Height | {{Form.Orientation.PaperHeight}} | ||
Header From Edge | "1.25 cm" | ||
Footer From Edge | "1.25 cm" |
Comments
0 comments
Article is closed for comments.