The starting point for every application which uses the Application API is the Application object. This object contains general methods like import/export support and references to the open documents and any open project.
The Application object is created differently in various programming languages. In scripting languages such as JScript or VBScript, this involves calling a function which initializes the application's COM object. For examples, see the Programming Languages section.
XMLSpy.Application or AuthenticDesktop.Application
Authentic Desktop installs a TypeLibrary containing the XMLSpyLib. If this TypeLibrary has been added to the development environment (VB development environment, for example) then an object of the Application type can be created with:
Set objSpy = New XMLSpyLib.Application
If only Authentic Desktop is installed (and not XMLSpy), then
Set objSpy = GetObject("", "XMLSpy.Application")
does not work, because there won't be any object registered in the Registry with a ProgID of XMLSpy.Application. In this case, the registered object is AuthenticDesktop.Application.
The code listings in this documentation assume that both Authentic Desktop and XMLSpy have been installed. If, however, only Authentic Desktop has been installed, then please modify code fragments to take account of this difference.
The application object consists of the following parts:
|1.||Document collection and reference to the active document.|
|2.||Reference to current project and methods for creating and opening projects.|
|3.||Methods to support the export to and import from databases, text files, and Word documents.|
|5.||Methods for macro menu items.|
Once you have created an Application object you can start using the functionality of Authentic Desktop. In most cases, you either open a project and access the documents from there or you directly open a document via the Documents interface.