Sample script: Mail merge
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> <INCLUDE FILENAME="Summer1.ee"/> <GROUP NAME="Repeat" REPEAT="YES"> <PAGE NAME="Page1" SIDE="FRONT"> <TEXT BOUNDS="SURNAME" FONT="Arial" WEIGHT="0" STYLE="0" POINTSIZE="10" BLANKLINES="NO" ALIGN="LEFT,TOP"> <TEXT BOUNDS="ADDRESS1" FONT="Arial" WEIGHT="0" STYLE="0" POINTSIZE="10" BLANKLINES="NO" ALIGN="LEFT,TOP"> <TEXT BOUNDS="ADDRESS2" FONT="Arial" WEIGHT="0" STYLE="0" POINTSIZE="10" BLANKLINES="NO" ALIGN="LEFT,TOP"> </PAGE> </IDF> |
Links: