The built-in function, ng:serializationData can help you if you want to print multiple label on a ZPL compatible printer, that are all identical apart from a number, which is increased for each label.
You can use this to reduce the size of the print data stream and increase print performance.
Prerequisites/limitations: This function only works for ZPL output. It is also only supported for a single page output, that is printed in multiple copies.
The ng:serializationData can e.g. be called with this command: ng:serializationData('00001','3','y') and here are descriptions of the 3 parameters:
First parameter: Starting value
This can be any numeric value with up to 12 digits.
Second parameter: Increment (up to 12 digits).
This can be any numeric value with up to 12 digits.
Third parameter: Keep leading zeroes
Allowed values are: "y" and "n". A "y" indicates, that leading zeroes should be included in the output and with "n" any leading zeroes are removed in the output.
Examples of use:
ng:serializationData('00001','3','y') = Number on the labels will be 00001, 00004, 00007…
ng:serializationData('00001','3','n') = Number on the labels will be 1,4,7…
ng:serializationData('5','1','n') = Number on the labels will be 5,6,7…