This method prints the specified document.
For most file types, this method uses the ShellExecute command to print the specified document. Printing is only successful with documents whose host application is registered to provide print functionality; word processors are typically registered to handle printing their own document types.
void PrintDocument ( string docPath )
Parameters | Description |
docPath | The file system path to the document to print. |
The following Visual C# example prints a document located in the Documents folder:
public class ExampleCode { static void Main() { HotDocs.Application app = new HotDocs.Application(); app.PrintDocument(@"C:\Documents\HotDocs\Templates\Test.rtf"); } }