DataMerge

A data merge object.

Methods:

exportFile, getElements, mergeRecords, removeDataSource, selectDataSource, toSource, toSpecifier, updateDataSource

Objects:

Boolean, DataMergeFields, DataMergePreference, Object

Preferences:

DataMergePreference

Hierarchy:

Superclass: Preference

Class: DataMerge

Property Listing

Property

Type

Access

Description

dataMergeFields

DataMergeFields DataMergeField

readonly

A collection of data merge fields.

dataMergePreferences

DataMergePreference

readonly

The data merge preference properties that define the layout and content of the target page.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

parent

Document

readonly

The parent of the DataMerge (a Document).

properties

Object

read/write

A property that allows setting of several properties at the same time.

Method Listing

undefined exportFile (to:File, using:PDFExportPreset, outputOversetReportFile:File)

Merges records and exports to PDF.

Parameter

Type

Description

to

File

The path of exported PDF file.

using

PDFExportPreset

The PDF export style to use. (Optional)

outputOversetReportFile

File

The path to the file in which to store the overset report. (Optional)

DataMerge getElements ()

Resolves the object specifier, creating an array of object references.

undefined mergeRecords (outputOversetReportFile:File)

Merges records and produces an optional overset report.

Parameter

Type

Description

outputOversetReportFile

File

The path to the file in which to store the overset report. (Optional)

undefined removeDataSource ()

Removes the data source.

undefined selectDataSource (dataSourceFile:File)

Specifies the file to use as the data source.

Parameter

Type

Description

dataSourceFile

File

The path to the data source file.

String toSource ()

Generates a string which, if executed, will return the DataMerge.

String toSpecifier ()

Retrieves the object specifier.

undefined updateDataSource ()

Updates the data source file with the most current data.

Object of

Document.dataMergeProperties

DataMergeField.parent

DataMergePreference.parent

Return

DataMerge.getElements()