Application.CommandLine Property

[Write-only] This property sets the HotDocs command line options as if it were started with a particular command line. Setting this property to a string is the same as if the string were passed to the executable when the program was started. For example, if the command line invokes an assembly, a new Assembly object is added to the queue. If the command line changes the appearance or behavior of HotDocs, the change happens immediately.

Syntax

string CommandLine [ set ]

Example

The following Visual C# example sets the CommandLine property to cause a new assembly to begin using the specified template file:

public class ExampleCode
{
    static void Main()
    {
        HotDocs.Application app = new HotDocs.Application();
        app.CommandLine = @"/tf=C:\Documents\HotDocs\Templates\demoempl.docx";
    }
}