Skip to main content

Add Heading

Adds a formatted heading to the Word document with a specified style. Headings are automatically formatted with bold text and can use predefined Word styles for consistent document structure.

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.

  • Heading - Heading text to add to the document. This will be the content of the heading.

  • Size - Font size in points for the heading (e.g., 16, 18, 20, 24). Must be greater than zero.

  • Font Name - Name of the font to use for the heading (e.g., Times New Roman, Arial, Calibri).

  • Space After - Space in points to add after the heading (0 or greater). Recommended values: 12 for moderate spacing, 18 for more spacing.

Options

  • Style - Word heading style to apply. Available options:
    • Heading 1 - Top-level heading (typically largest)
    • Heading 2 - Second-level heading
    • Heading 3 - Third-level heading
    • Heading 4 - Fourth-level heading
    • Heading 5 - Fifth-level heading
    • Heading 6 - Sixth-level heading
    • Title - Document title style
    • Subtitle - Document subtitle style

Use Cases

  • Creating structured documents with hierarchical headings
  • Building automated reports with proper heading levels
  • Generating table of contents-ready documents
  • Creating professional document templates
  • Organizing document sections clearly

Example

Creating a document structure with multiple heading levels:

// Document Title
// Heading: "Annual Financial Report 2024"
// Size: 24
// Font Name: "Arial"
// Style: "Title"
// Space After: 18

// Section Heading (Level 1)
// Heading: "Executive Summary"
// Size: 18
// Font Name: "Arial"
// Style: "Heading 1"
// Space After: 12

// Subsection Heading (Level 2)
// Heading: "Revenue Overview"
// Size: 16
// Font Name: "Arial"
// Style: "Heading 2"
// Space After: 10

// Subsection Heading (Level 3)
// Heading: "Quarterly Breakdown"
// Size: 14
// Font Name: "Arial"
// Style: "Heading 3"
// Space After: 8

Heading Hierarchy Best Practices

Title (24pt)
|
+-- Heading 1 (18pt) - Main sections
|
+-- Heading 2 (16pt) - Subsections
|
+-- Heading 3 (14pt) - Sub-subsections
|
+-- Heading 4 (12pt) - Detailed points
tip

Use consistent heading styles throughout your document for a professional appearance. Word's built-in styles also enable automatic table of contents generation.

Font Size Recommendations by Style

  • Title: 20-28 pt
  • Subtitle: 16-20 pt
  • Heading 1: 16-20 pt
  • Heading 2: 14-18 pt
  • Heading 3: 12-16 pt
  • Heading 4: 11-14 pt
  • Heading 5: 10-12 pt
  • Heading 6: 10-11 pt

Common Errors

  • "Invalid File Descriptor" - Ensure the Open Word node was executed first.
  • "Heading cannot be empty" - Provide heading text in the Heading input.
  • "Font Size must be greater than zero" - Font size must be a positive number.
  • "Font Name cannot be empty" - Specify a valid font name.
  • "Space After must be equal to or greater than zero" - Use a non-negative value for spacing.

Notes

  • Headings are automatically formatted with bold text.
  • The Style option applies Word's built-in formatting in addition to your custom size and font settings.
  • Headings are appended to the end of the document.
  • Using proper heading styles enables Word's navigation pane and outline view.

See Also