Application.SendToWordProcessor Method

This method sends a document specified in the docFileName parameter to the word processor.

Syntax

void SendToWordProcessor ( string docFileName )

Parameters Description
docFileName The file system path to the document to open. The file format must be one that is supported by HotDocs, for example: Word (.DOCX and .RTF), WordPerfect (.WPD), or HotDocs Filler (.HFD, .HPD).

Example

The following Visual C# example sends a document located in the Documents folder to the word processor:

public class ExampleCode
{
    static void Main()
    {
        string sDocument = @"C:\Documents\HotDocs\Templates\Test.docx";
        HotDocs.Application app = new HotDocs.Application();
         
        app.SendToWordProcessor(sDocument);
    }
}