TX Sheet Control

MailMergeTemplate Interface

Interface

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

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

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

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.

import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

function inspectMailMergeTemplateEvents(
    mailMergeTemplate: Awaited<ReturnType<ServerSheetControl['workbook']['createMailMergeTemplate']>>,
) {
    const value = mailMergeTemplate['events'];
    console.log('MailMergeTemplate.events', value);
}

See Also