AnswerCollection.Open Method
This method opens an existing answer file and populates the AnswerCollection. If the answer file does not exist, however, this method will return an error.
Syntax
void Open ( string filePath )
Parameters | Description |
filePath | The file system path of the answer file. |
Example
'This example opens a binary (.ANS) answer file in an answer collection, adds answers ' to it, and saves the answer collection in an XML answer file. Dim ac Set ac = Server.CreateObject("HotDocs_Online.AnswerCollection") ac.Open "c:\answers\answers.ans" ac.FileFormat = ansXmlAns ac.AddAnswer "First Name", 1, "Violet" ac.AddAnswer "Last Name", 1, "Anderson" ac.Save "c:\answers\answers.anx" ac.Close