Products Technologies Demo Docs Blog Support Company

Which MS Word Fields Are Supported and How to Handle Them?

TX Text Control supports many fields from MS Word that can be imported from MS Word compatible formats. This article lists different fields and options how to handle them.

Which MS Word Fields Are Supported and How to Handle Them?

TX Text Control provides support for many field types including proprietary TextFields, MS Word compatible ApplicationFields, Content Control and legacy MS Word compatible FormFields.

When using fields from other applications such as MS Word, there are different options to handle these fields.

On loading a document, the ApplicationFieldFormat property can be used to specify how a field is imported. The following code shows how to load the document and to enable MS Word compatible fields:

TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings() {
    ApplicationFieldFormat = TXTextControl.ApplicationFieldFormat.MSWord
};

textControl1.Load("test.docx", TXTextControl.StreamType.WordprocessingML, ls);

LoadSettings

When importing fields, 3 relevant options can be specified:

  • None

    Textfields supported through other applications are not imported as ApplicationFields. Formfields are imported as TextControl FormFields.

  • MSWord

    Fields which are supported and defined through Microsoft Word are imported as ApplicationFields. The LoadSettings.ApplicationFieldTypeNames property can be used to select particular types of fields.

  • MSWordTXFormFields

    Fields which are supported and defined through Microsoft Word are imported as ApplicationFields with an exception of form fields. Form fields such as comboboxes, checkboxes and form textfields are imported as TextControl FormFields.

Field Overview

The table below shows how fields are imported based on the specified LoadSettings:

Field Document Format Imported as ( LoadSettings)
None MSWord MSWordTXFormFields
TextField InternalUnicodeFormat, InternalFormat TextField N/A N/A
MergeField MSWord, WordprocessingML, RichTextFormat × ApplicationField ApplicationField
DOCVARIABLE MSWord, WordprocessingML, RichTextFormat × ApplicationField ApplicationField
Content Control MSWord, WordprocessingML, RichTextFormat FormFields ApplicationField FormFields
Legacy Form Fields MSWord, WordprocessingML, RichTextFormat FormFields ApplicationField FormFields

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Also See

This post references the following in the documentation:

  • TXTextControl.ApplicationField Class
  • TXTextControl.FormField Class
  • TXTextControl.LoadSettings.ApplicationFieldFormat Property
  • TXTextControl.TextField Class

Related Posts

ASP.NETReportingWindows Forms

Sneak Peek X15: MS Word Compatible Document Protection and Editable Regions

In version X15, admin users are able to protect a document and to add editable regions to a document. This article gives an overview of the new UI and functionality for this feature.


ASP.NETWindows FormsWPF

TX Text Control 33.0 SP3 is Now Available: What's New in the Latest Version

TX Text Control 33.0 Service Pack 3 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…


ASP.NETWindows FormsWPF

TX Text Control 33.0 SP2 is Now Available: What's New in the Latest Version

TX Text Control 33.0 Service Pack 2 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…


ASP.NETWindows FormsWPF

Document Lifecycle Optimization: Leveraging TX Text Control's Internal Format

Maintaining the integrity and functionality of documents throughout their lifecycle is paramount. TX Text Control provides a robust ecosystem that focuses on preserving documents in their internal…


ActiveXASP.NETWindows Forms

Expert Implementation Services for Legacy System Modernization

We are happy to officially announce our partnership with Quality Bytes, a specialized integration company with extensive experience in modernizing legacy systems with TX Text Control technologies.