... including URL and other Internet Web site references, is subject to change. without notice. ... does not give you any license to these patents, tr
Document source : download.microsoft.com
Microsoft Word Suite
82
Class: data merge
Plural
data merges
Elements
data merge field
Represents the data merge functionality in Word.
To return the data merge object, use the data merge property of the document class. The data merge
object is always available regardless of whether the data merge operation has begun. To determine
the status of the data merge operation, use the state property. The following example executes a data
merge if the active document is a main document with an attached data source.
if state of data merge of active document is main and data source then
execute data merge data merge of active document
end if
The following example merges the main document with the first three data records in the attached
data source and then sends the results to the printer.
set myMerge to data merge of active document
if (state of myMerge is main and source and header) or (state of myMerge is ¬
main and data source) then
set first record of data source of myMerge to 1
set last record of data source of myMerge to 3
end if
set destination of mymerge to send to printer
execute data merge myMerge
Properties
data source
Returns a
data merge data source
object that refers to the data source attached to a data merge
main document. Read-only.
destination
Returns or sets the destination of the data merge results. Read/write.
Can be one of the following:
·
send to email
·
send to fax
·
send to new document
·
send to printer
Summary :
set myMerge to data merge of active document if (state of myMerge is main and source and header) or (state of myMerge is ¬ main and data source) then set first record of data source of myMerge to 1 set last record of data source of myMerge to 3 end if set destination of mymerge to send to printer execute data merge myMerge Properties data source Returns a data merge data source object that refers to the data source attached to a data merge main document.
Tags :
document,mymerge,main,send,actie,state,set,object,destination,printer,then,following,attached