[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Getting Started
     ASPxRichEdit Control
     Supported Document Formats and Printing
     Import and Export
     Formatting Characters
     Formatting Paragraphs
     [Collapse]Field Codes
     Mail Merge
     Simple View
     Table of Contents
     Spell Checking
    [Expand]Client API
    [Expand]Built-in Dialogs
     HTML Tag Interpretation
     Keyboard Shortcuts
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Field Codes

Expanded Syntax

Field codes appear between curly braces ( { } ). You can switch between displaying the field code and the result for a selected field by selecting Toggle Field Codes in the context menu.

When you view a field code in your document, the syntax looks like this:

{ FIELDNAME Properties Optional_Switches }

  • FIELDNAME - This is the name of the field.
  • Properties - These are any instructions or variables that are used in a particular field. Not all fields have parameters, and in some fields, parameters are optional.
  • Optional switches - These are any optional settings that are available for a specific field. Not all fields have switches available, other than those that control the formatting of the field results.

Expanded Supported Fields

Field Name Functionality
DATE Inserts the current date and time.
DOCVARIABLE Enables you to programmatically insert complex content when this field is updated.
HYPERLINK Enables you to navigate to another location or to a bookmark.
MERGEFIELD Retrieves a value from the bound data source.
NUMPAGES Inserts the total number of pages.
PAGE Inserts the number of the page containing the field.
TIME Inserts the current time.
TOC Inserts the Table of Contents.
SEQ Inserts the number of the figure/table/equations.
TC Inserts the alternate entry for the Table of Contents
PAGEREF Inserts a number of the page that stores the specified bookmark for a cross-reference.

Expanded Formatting Options

The following format switches are supported by the fields listed above:

The Numeric Format Switch are not currently supported.

Expanded See Also

Is this topic helpful?​​​​​​​