TX Sheet Control

MailMergeTemplate Class

Class

Captures template state and produces isolated merged workbooks without browser UI.

Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.

ES module import: import { MailMergeTemplate } from '@txtextcontrol/tx-sheet-control';.

Constructor

new MailMergeTemplate(workbook)
ParameterTypeOptionalDescription
workbookWorkbookInstanceNoValue matching workbook's declared type and the owning object's validation rules.

Returns: MailMergeTemplateInstance.

Members

Properties

PropertyDescription
eventsFile lifecycle notifications for each save of the captured template.

Methods

MethodDescription
mergeThe merge operation of MailMergeTemplate.
saveSaves the captured template through the same format dispatcher as a workbook.

Examples

Pass the MailMergeTemplate value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

function inspectMailMergeTemplateEvents(mailMergeTemplate) {
    const value = mailMergeTemplate['events'];
    console.log('MailMergeTemplate.events', value);
}

See Also