ReadSetup method

The ReadSetup method reads the document hierarchy setup information from the specified Setup DCO file and writes the information into the Setup object and SetupNode object.

This sample file shows properties that the ReadSetup method can process.
|--Setup
   |--Path(string)
   |--DictionaryName*
   |--Value*
   |--Word* 

|--SetupNode
   |--MaxNumOfChildren(int)
   |--MinNumOfChildren(int)
   |--Name(string)
   |--ObjectType(int)
   |--RuleChildName*
   |--RuleMaxNumber*
   |--RuleMinNumber*
   |--RuleObjectType*
   |--RulePosition*
   |--Variable*
   |--VariableName*
   |--VariableValue*            
* Extended properties that are accessible directly from VBScript or through the corresponding get method or set method in .NET.

Syntax

VBScript
oDCO.ReadSetup (FileName as String) as Boolean
C#
bool IDCO.ReadSetup(string lpszFileName)

Arguments

lpszFileName
Full path and name for the Setup DCO XML file. (See the following example.)

Returns

Returns true if successful; returns false if unsuccessful.

C# example

This example populates the Setup object and SetupNode object from APT.XML, changes the name of the first dictionary to Datacap, and writes the objects back to the Setup DCO.
m_oDCO.ReadSetup("C:\\Datacap\\APT\\dco_APT\\APT.XML");
m_oDCO.SetupObject().set_DictionaryName(0, "Datacap"); 
m_oDCO.WriteSetup("C:\\Datacap\\APT\\dco_APT\\APT.XML");