New to Telerik UI for WinForms? Start a free 30-day trial

Opens a save dialog, creates a merged document for all mail merge records, and exports it when the dialog is accepted.

Definition

Constructors

Creates a command that exports mail merge results from the specified editor.

C#
public MailMergeCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The editor whose document and mail merge data source are used.

Properties

Gets the base file name selected in the most recent accepted save dialog, or an empty string if it was canceled.

C#
public string FileName { get; }

Methods

Prompts for an export destination, then generates and saves the merged document if the dialog is accepted.

C#
protected override void ExecuteOverride(object parameter)
Parameters:parameterobject

An optional format filter: a string containing | is used as the complete dialog filter; otherwise comma- or semicolon-separated extensions restrict available export formats.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)