Assembly.CommandLine Property

[Write-only] This property sets command line options for the assembly as if it were started with a particular command line from the library. Setting this property to a string is the same as if the string were passed in from the library entry.

Assigning a string to this property actually appends the new command line string to any existing command line options already set. Assigning an empty string ("") to this property removes any command line options already set.

Syntax

string CommandLine [ set ]

Example

The following Visual C# example sets the CommandLine property:

public class ExampleCode
{
    static void Main()
    {
        HotDocs.Application app = new HotDocs.Application();
        HotDocs.Assembly asm = new HotDocs.Assembly();
         
        asm.TemplatePath = @"C:\temp\Demo Employment Agreement.docx";
        asm.CommandLine = @"/af=C:\temp\EmployeeAnswers.anx";
        asm.Visible = true;
        app.Assemblies.Add(asm);
    }
}