OnSerialize

OnSerialize is called when a serialization might occur when items are printed. The frequency of execution of the OnSerialize event depends on the number of serial numbers printed, regardless of whether the number is specified in the Print dialog or is being read from a database.

If the quantity of Serial Numbers in the Print dialog is given a set value, and no serialization values are being read from a database, that value will specify how many times the OnSerialize event is called per print job.

If the value for the number of serial numbers is being read from a database (which means a new serialization value for each record), then the value read in for each record specifies how many times the OnSerialize event is called for each corresponding record. (The total number of times OnSerialize is called per print job will be equal to the sum of the serialization values read in for each record.)

Serialization need not be enabled for any objects on the template for the OnSerialize script to be called. As long as the OnSerialize event contains a script, that script will be called according to the frequency defined above.

Related Topics