Skip to main content
Skip table of contents

DOCX Print

Overview

DOCX is available as an output format for Form Setup–based prints.
The system generates DOCX files that open reliably in Microsoft Office 365 without formatting or corruption issues.

The DOCX output follows the R2’s PDF print format standards.

Applies To

You can use DOCX output for the following print types which works based on Form Setup:

  • Order prints (all order categories)

  • Invoice prints

  • Batch invoice prints

  • EDR prints

  • Picklist prints (Order and Transfer) etc.

Prerequisites

Before you enable DOCX output, make sure that:

  • Your forms follow R2’s PDF-compatible layout standards.

  • You store disclaimer files in DOCX format.

  • Header, footer, and body widths stay within supported limits.

Select DOCX as the output format

To set DOCX as default output format for a specific form. Refer to Form Setup.

You can also select DOCX as output format while printing form setup based prints in:

The system continues to support PDF and RTF formats without changes.

Configure Headers and Footers

The system processes headers and footers in a fixed order.
Always configure them in the following sequence:

  1. First page header

  2. Regular header

  3. First page footer

  4. Regular footer

  5. Footer group

If you change this order, the system may skip or misplace headers and footers.

Configure the Default Footer

If you do not define a custom footer, the system applies a default footer as setup in the Configuration module > Print tab > Default Footer option.

Set the Default Footer

  1. Go to Configuration → Print → Default Footer.

  2. Select one of the following options:

Value

Result

0

Show page number and timestamp

1

Show page number only

2

Show timestamp only

3

Do not show a footer

How DOCX Renders the Footer

The system renders the default footer as a three-cell table:

  • Left: Report title

  • Center: Page X of Y

  • Right: Printed on <date and time>

Use DOCX with PDF-Compatible Forms

The system aligns DOCX output with PDF layouts.

  • Use PDF as the reference format when designing forms.

  • Forms that work correctly in PDF usually work in DOCX without changes.

  • Validate DOCX output by comparing it with the PDF output.

Convert RTF Forms to DOCX

You can convert existing RTF forms to DOCX.

In most cases, converting an RTF form:

  • Enables DOCX output

  • Maintains PDF compatibility

  • Prevents Word formatting and file corruption issues

Add Disclaimers to DOCX Output

The system supports disclaimers in DOCX output.

  • Store disclaimer files in DOCX format.

  • Do not use RTF files for DOCX disclaimers.

  • Verify disclaimer layout after conversion.

Configure Logos

The system simplifies logo handling for DOCX.

  • Specify the logo image path directly in the Form UI.

  • Do not create a separate logo file.

  • Use the same configuration you use for PDF output.

Follow Layout and Width Standards

Microsoft Word enforces strict width limits for DOCX tables.

  • Keep header, footer, and body widths within supported limits.

  • Exceeding width limits may cause footer or alignment issues.

Handle Row Gaps Between Bordered Rows

The system renders each Form UI row as a separate Word table.

When adjacent rows use borders, Word may display a visible gap.

Merge Rows When Required

Set the following property only when you need continuous borders:

MERGE_WITH_NEXT_NEW_LINE = true

Use this property carefully.

Error Handling

If DOCX generation fails, the system:

  • Does not download an empty or corrupt file

  • Displays a clear, user-friendly error message

You can fix most issues by updating Form UI settings.

Validate DOCX Output

After you enable DOCX output:

  • Compare DOCX output with PDF output.

  • Confirm that headers, footers, disclaimers, and logos render correctly.

  • Verify that PDF and RTF outputs remain unchanged.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.