Mail Merge Functionality
Version number:

DownloadDownload

Printer Driver Pricing Online Mnaual

When the mail merge checkbox is checked, the driver will recognize special character sequences in the printed text to extract some of the information in a text.

The recognized character sequences all start with two ‘#’ characters. Most of these ‘commands’ will cause the driver to remove or alter the printed text and write it in the merged output file in text format. This file will have the same filename as the group file, with the MRG extension. The actual name of this file will be written in the group file in the following format:

Merge Output=c:\aaaa1000.mrg

The recognized command sequences are as follows:

##~~ Lines starting with these four characters and ending with “~~” will not be printed, but written to the merged output file. For example, if the following string is sent to the driver:

##~~ Phone number=6031234321~~

there will be an empty line printed in the output image file and the following line will be added to the merged output file:

Phone number=6031234321 .

##** Lines starting with these four characters and ending with “**” will be partially printed and also written to the merged output file. If the string enclosed by the “**” marks contains an equation mark, the characters after the equation mark will be printed. Otherwise the whole string between the asterisks will be printed.

Every character between the asterisks will be written to the merged output file.

For example, if the following string is printed with the driver:

##** Adressee=Company Name**

the following will be written to the merged output file:

Adressee=Company Name

and the following line will be printed to the output image file:

Company Name

All of the above command lines must be printed as one continuous string from left to right. If they are printed one part at a time using several separate printing function calls, ( first printing “##~~” and then the rest of the line ) the driver may not be able to correctly recognize them.

The mail merge file will also contain page delimiter information to mark where the new page is started. The page delimiter is an empty line, the ‘Page 1:’ text (where the number is the current page number) and another empty line :

Page 1:
Page 2:
Page 3:

This information will appear in the Mail Merge file even is there is no mail merge information in that particular the page.