Open topic with navigation
Sometimes your data needs to be validated or processed in an unusual way before printing. A transform lets you modify (or transform) the data already contained within a data source. Specifically, the VBScript transform lets you modify the data in advanced ways not easily performed by the other available transforms.
To set up a VBScript transform
-
Add a text, encoder, or barcode object to your template.
-
Double-click the border of the object to open the object's Properties dialog. Alternatively, right-click the object and then select Properties from the context menu.
-
In the Navigation Pane, select the data source where you want to set up the transform.
-
Click the Transforms tab.
-
At the right of VB Script, click to open the Script Editor.
Transform Events
-
OnProcessData: During a print job, this event will occur once for every record accessed by a text, encoder, or barcode object. For each record, the event occurs after BarTender has processed the other transforms enabled for the data source. The one exception: it occurs before the options defined on the Serialization dialog. Each object and each human readable has its own OnProcessData event.
-
OnPostSerialize: This event is listed only if serialization has been enabled on the Serialization dialog. It occurs once each time the application serializes an item.