CustomerSite (Method) - OCR for AnyDoc - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License

Description

Returns True if the hardware key attached to the local workstation is a customer or dealer key, and False if it is an AnyDoc employee key. This can be useful for automatically switching connection strings to connect to different databases based on where the template is used.

Applicable Events

AnyApp Pre-Application, AnyApp Post-Algorithm, AnyApp Post-Application, Post Extract, AnyApp Post Extract, Pre-Verify, Interactive, Verification Function Key (F-Key), Post-Verify, ZoneLink

Syntax

object.CustomerSite

Parameters

Object is a reference to the Utility object. For more information, see Utility Object (page Utility Object).

CustomerSite is the command.

Example

‘ Use local ACCESS database for testing

strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mydatabase.mdb;User Id=admin;Password=;"

If Utility.CustomerSite then

strConn = "Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;"

End if