LicenseServer.Address Property

ClosedDescription

Sets and returns the address of the preferred Seagull License Server.

ClosedSyntax

LicenseServer.Address = Address

Where Address is the address of the computer running the license server.

ClosedRequirements

Version

BarTender 6.12 or higher

Edition

Automation, Enterprise Automation

ClosedRemarks

The LicenseServer.Address property sets and returns the address of the computer that is running the preferred Seagull License Server. If the preferred server is not available, BarTender will use the server specified with the LicenseServer.AlternateAddress property. The address can be a server name (e.g., MyServer), a domain name (e.g., Shipping.MyCompany.com), an IP address (e.g., 10.1.1.68), or the asterisk, ("*"). Setting the address to an asterisk will cause BarTender to search for a Seagull License Server on the defined port (AutoDetect). Getting a "*" indicates that BarTender connected to a Seagull License Server on the defined port.

AutoDetect will not find a Seagull License Server that is behind a network router. Because of this, we suggest that you set the LicenseServer.AlternateAddress property in addition to the LicenseServer.Address property.

ClosedVB.NET Example

'Declare a BarTender application variable

Dim btApp As BarTender.Application

'Create a new instance of BarTender

btApp = New BarTender.Application

'Set the BarTender application visible

btApp.Visible = True

'Set the license server address property

btApp.LicenseServer.Address = "MyPC"

'End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)

ClosedC# Example

// Declare a BarTender application variable

BarTender.Application btApp;

// Create a new instance of BarTender

btApp = new BarTender.Application();

// Set the BarTender application visible

btApp.Visible = true;

// Set the license server address property

btApp.LicenseServer.Address = "MyPC";

// End the BarTender process

btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);