AnswerCollection.OverlayAnswerFile Method
This method loads answers from the specified answer file into the current answer collection.
Syntax
void OverlayAnswerFile ( string fileName )
| Parameters | Description |
| fileName | The name of the answer file you want used as the overlay 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