This is the IDF code for a simple document created by the mail-merge wizard.

The "fixed" text of the letter is given in file Summer1.PCL. The positions on the page for the "variable" data are given in its "EE" file, Summer1.ee. File contacts.csv contains field-values in comma-separated format. The mail-merge wizard enables you to associate the Summer1 fieldnames with the fieldnames given in the first line of contacts.csv. It can then create an IDF file to generate one customized page per data record.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<IDF ENCODING="UTF-8" NAME="Mailmerge" UNITS="INCHES" FONT="Arial" POINTSIZE="10" ORIENT="P" PLEX="SIMPLEX">

<INFO>
:\DOCUMENT MAILMERGE
</INFO>

<INCLUDE FILENAME="Summer1.ee"/>

<GROUP NAME="Repeat" REPEAT="YES">
<FILE PAGE="NEXT" PREFIX="CSV_" FILETYPE="CSV" FILENAME="contacts.csv"/>

<PAGE NAME="Page1" SIDE="FRONT">
<FILE NAME="OVERLAY" PAGE="1" FILENAME="Summer1.PCL"/>

<TEXT BOUNDS="SURNAME" FONT="Arial" WEIGHT="0" STYLE="0" POINTSIZE="10" BLANKLINES="NO" ALIGN="LEFT,TOP">
<?EE CSV_SURNAME?>
</TEXT>

<TEXT BOUNDS="ADDRESS1" FONT="Arial" WEIGHT="0" STYLE="0" POINTSIZE="10" BLANKLINES="NO" ALIGN="LEFT,TOP">
<?EE CSV_ADDRESS1?>
</TEXT>

<TEXT BOUNDS="ADDRESS2" FONT="Arial" WEIGHT="0" STYLE="0" POINTSIZE="10" BLANKLINES="NO" ALIGN="LEFT,TOP">
<?EE CSV_ADDRESS2?>
</TEXT>

</PAGE>
</GROUP>

</IDF>

 


Links:

Mail merge wizard