[Read/Write] This property determines the answer file format.
The FileFormat may be one of the following values from the HDAFFORMAT enumeration:
All answer files are written in XML format by HotDocs 2009 and later. The difference between a "HotDocs 2009-10 Format" XML answer file and a "Pre-HotDocs 2009 Format" XML answer file is that HotDocs 2009-10 answer files use UTF-8 encoding and they do not contain an embedded DTD. If your answer files must be read by versions of HotDocs earlier than 2009, use the PreHD2009Format.
HotDocs.HDAFFORMAT FileFormat [ set, get ]
The following Visual C# example creates a new AnswerCollection object for a given answer file and displays the file name, format (type), title, description, and number of answers stored in the file:
public class ExampleCode { static void Main() { HotDocs.AnswerCollection asc = new HotDocs.AnswerCollection(); asc.Create(@"C:\Documents\HotDocs\Answers\AnswerFile.anx"); Console.WriteLine("File: {0}\n", asc.FileName); Console.WriteLine("Format (Type): {0}\n", asc.FileFormat); Console.WriteLine("Title: {0}\n", asc.Title); Console.WriteLine("Description: {0}\n", asc.Description); Console.WriteLine("Count: {0}\n", asc.Count); asc.Close(); } }