SnapMailMergeRecordFinishedEventArgs.RecordDocument Property
Provides access to the document created for a single record after the fields are processed.
Namespace: DevExpress.Snap
Assembly: DevExpress.Snap.v19.1.Core.dll
Declaration
Property Value
Type | Description |
---|---|
SnapDocument | An object implementing the SnapDocument interface. |
Remarks
Use the RecordDocument property to modify the document created for a particular record.
Example
This code snippet illustrates how to add text to the document generated by the SnapDocumentServer.SnapMailMerge method for the particular data record with index = 3.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-automatically-create-mail-merge-documents-using-the-snap-document-server-e5078
static void server_SnapMailMergeRecordFinished(object sender, SnapMailMergeRecordFinishedEventArgs e)
{
if (e.RecordIndex == 3)
e.RecordDocument.AppendText("This is the third data record.\r\n");
}
See Also