Skip to main content

TdxRichEditCustomDocumentServer.CreateMailMergeOptions Method

Creates a container for settings usable in mail merge operations.

Declaration

function CreateMailMergeOptions: IdxRichEditMailMergeOptions;

Returns

Type
IdxRichEditMailMergeOptions

Remarks

Call this function to create mail merge settings that you can pass as the AOptions parameter in a MailMerge or Document.MailMerge procedure call:

var
  AOptions: IdxRichEditMailMergeOptions;
//...
  AOptions := dxRichEditDocumentServer1.CreateMailMergeOptions;
  AOptions.MergeMode := TdxRichEditMergeMode.JoinTables;  // Adjusts mail merge settings
  dxRichEditDocumentServer1.MailMerge(AOptions, dxRichEditDocumentServer1.Document);
See Also