VariableCollection.Open Method

This method opens the template manifest (.manifest.xml) or variable collection (.HVC) file and populates the variable collection object. (You must use this method first if you plan to use the VariableCollection object.)

Syntax  

void Open ( string hvcPath )

Parameter Description
hvcPath The file name and path for the variable collection to open. This must be either a template manifest (.manifest.xml) or a legacy HotDocs Variable Collection (.HVC) file.

Example

The following Visual Basic example opens a variable collection file and displays the number of variables it contains, as well as the template's title and description:

dim vc
Set vc = Server.CreateObject ("HotDocs_Online.VariableCollection")
 
vc.Open "c:\templates\template.rtf.manifest.xml"
 
Response.Write "Count: " & vc.Count & "<br>"
Response.Write "Title: " & vc.Title & "<br>"
Response.Write "Description: " & vc.Description & "<br>"