This method displays the Open Answer File dialog box and returns the file name and path of the selected answer file.
This method works only with a visible assembly.
void SelectOpenAnswerFileDlg ( ref string FileName )
| Parameters | Description |
| FileName | The file name and path of the selected answer file. |
The following Visual C# example displays the "Open Answer File" dialog box and displays the file name and path of the selected answer file.
public class ExampleCode
{
static void Main()
{
HotDocs.Application app = new HotDocs.Application();
HotDocs._Assembly3 asm = app.ActiveAssembly as HotDocs._Assembly3;
String filename = "";
asm.SelectOpenAnswerFileDlg(ref fileName);
MessageBox.Show("The selected answer file is " + filename);
}
}