Creating a Text Control in a Server Side Script

An instance of a Text Control is created by calling the Server.CreateObject function:

Dim lc, tx
set lc = Server.CreateObject("TIS.TX.LicManager.24")
set tx = Server.CreateObject("TIS.TX.TextControl.24")

Before creating the Text Control object, a license manager object must be created that reads Text Control's license information from the registration data base. This information is necessary to create a Text Control object.

The EnableAutomationServer method initializes the Text Control object as an automation server. The remaining lines set the width, height and page margins of a Text Control document.