Visual Basic Scripting in BarTender |
|
The topics in this section refer to using Visual Basic Script (VBScript) within the BarTender user interface. To automate BarTender from an external application, you must use the BarTender ActiveX Automation interface or install the BarTender .NET SDK. For more information, refer to |
You can perform most of the BarTender functions directly in the application, but the BarTender scripting capability provides more advanced functionality to the application and provides a way for you to customize the data and objects by using a text editor if you want.
The BarTender internal scripting engine helps you with the following tasks:
Providing the data for a data source or object:
Performing special validation or other processing on data from another data source, such as a database or the keyboard: Sometimes, your data must be validated or processed in an unusual way before it is printed. By using the VBScript transform, you can modify the data and control data source input. For more information, refer to Using the VBScript Transform.
Altering the data or object formatting at certain times: Use BarTender document-level events and regular events to customize the behavior of your document and template design at specified times, such as at print time or when a document is opened. For more information, refer to Document-Level Events.
|
Although VBScript can be complex enough to be considered a "program," there are times when a single line of VBScript can prove quite useful. However, scripting is typically a technique for advanced users and is not ideal for computer novices. Whatever your computer skills are, you should always make sure that BarTender does not already offer a solution to your challenge before you try a script-based solution. |
Describes the various types of procedures, how to share script between objects, and how to define global variables.
Describes how to enable Visual Basic scripting for document-level events, and describes the document event scripts that are included with BarTender.
Explains how to set the data source type, and describes the different types of scripts that are available.
Describes how to use the VBScript transform for data processing and validation.