ContextInitialize Function

HotDocs API must not be used during a plug-in's initialization.  Plug-ins must wait until HotDocs is itself fully initialized (e.g. after all the plugins have loaded) before calling its APIs, or it risks leaving HotDocs running (hidden) after the user closes it.

This function is called when HotDocs starts up to determine if it should load the plug-in. If the function fails, HotDocs will not load the plug-in.

Syntax

ContextInitialize ( )

When HotDocs calls this function, it has not completely loaded its COM DLLs, which means you cannot call HotDocs COM interfaces in this function. Instead, you can call those interfaces in ContextLibraryInitialized, which HotDocs calls after they are made available.

Example (Visual C#)

The following Visual C# example implements the ContextInitialize function:

public void ContextInitialize()
{
}