Log In
[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Collapse]Rich Text Editor
   [Expand]Getting Started
     Supported Document Formats
     [Expand]Field Codes
     [Expand]Format Switches
      Field Structure
      Inserting a Field
      Field Display Modes
      Updating a Field
      Field Types
     Layout API
     Product Class Structure
     Default Keyboard Shortcuts
     Measure Units
     HTML Tag Interpretation
   [Expand]Visual Elements
   [Expand]Member Tables
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Field Display Modes

The default Mail Merge Ribbon tab (command bar) can be used to switch between field display modes. Fields can be shown with codes, placeholders or results .

The ShowAllFieldCodesCommand command displays field codes for the entire document.

The ShowAllFieldResultsCommand displays placeholders or field results . The RichEditMailMergeOptions.ViewMergedData option determines whether the actual data record specified by the MailMergeOptions.FirstRecordIndex is displayed, or a data placeholder is shown instead.

The following image illustrates a data placeholder.

If RichEditMailMergeOptions.ViewMergedData is switched on, the actual data is displayed, as illustrated below.

By default, field results are displayed seamlessly within the document content. However, fields can also be highlighted with a shaded background by specifying field options in the RichEditControlOptionsBase.Fields property.

How would you rate this topic?​​​​​​​