Add Header
Adds a header to all sections of the Word document. The header appears at the top of each page and can be aligned left, center, or right.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing the node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If ContinueOnError property is true, no error is caught when the project is executed even if Catch node is used.
Input
-
File Descriptor - File descriptor ID from the Open Word node. Default variable is
word_fd. -
Header - Header text to display at the top of each page.
-
Size - Font size in points for the header text (e.g.,
10,11,12). Must be greater than zero.
Options
- Format - Text alignment for the header. Available options:
left- Align text to the leftcenter- Center the textright- Align text to the right
Use Cases
- Adding company names or document titles to every page
- Displaying document classification (Confidential, Draft, etc.)
- Including department or project names
- Adding document identifiers or reference numbers
- Creating professional letterheads
Example
Adding a company header to a report:
- Use Open Word to open the document
- Add the Add Header node
- Configure the inputs:
- File Descriptor:
word_fd - Header:
ACME Corporation - Confidential Report - Size:
10 - Format:
center
- File Descriptor:
Header Examples by Alignment
// Left-aligned header
// Header: "Internal Use Only"
// Size: 9
// Format: left
// Center-aligned header
// Header: "2024 Annual Financial Report"
// Size: 11
// Format: center
// Right-aligned header
// Header: "Page " // Word automatically adds page number field
// Size: 10
// Format: right
Creating Multi-Information Headers
Since the header is applied to all sections, you can include multiple pieces of information:
// Document title with date
// Header: "Quarterly Review - December 2024"
// Size: 10
// Format: center
// Company and department
// Header: "ACME Corp. | Human Resources Department"
// Size: 9
// Format: left
tip
Use a smaller font size for headers (9-11 points) to distinguish them from main document content and save vertical space.
Common Font Sizes for Headers
- 8-9 pt - Minimal, discreet headers
- 10 pt - Standard header size
- 11 pt - Slightly larger for emphasis
- 12 pt - Maximum recommended size
Common Errors
- "Invalid File Descriptor" - Ensure the Open Word node was executed first.
- "Header text cannot be empty" - Provide header content in the Header input.
- "Font Size must be greater than zero" - Specify a positive size value.
- "Format must be selected" - Choose a valid alignment option (left, center, or right).
Notes
- Headers are added to all sections in the document.
- If a header already exists, this node will replace it.
- The header appears on every page of the document by default.
- Word automatically includes a page number field in the header.
- Headers are part of the primary header (not first page or even/odd page headers).
Header vs Title
- Header (this node) - Appears on every page at the top
- Heading (Add Heading node) - Content heading within the document body
- Title (Add Heading with Title style) - Document title in the main content area
Typical Header Content
- Company or organization name
- Document title or type
- Classification level (Confidential, Internal, Public)
- Department or division name
- Project or report name
- Document reference numbers
Best Practices
- Keep headers concise and informative.
- Use consistent header styling across related documents.
- Choose alignment that matches your document style:
- Left - Professional, traditional
- Center - Formal, balanced
- Right - Modern, space-saving
- Use a font size smaller than body text (typically 9-11 pt).
- Avoid cluttering headers with too much information.
See Also
- Add Footer - Add footers to pages
- Add Heading - Add content headings
- Add Text - Add body text