PrintDocument Method

Action2 Example

 

Encapsulates the AutoMate™ action in the “General” group, “Print a document.” The method attempts to print the specified document using the document’s registered data and program type.

 

Declaration

function PrintDocument (varDocument As Variant) As Integer

 

Parameters

varDocument

 The full path to the document to be printed.

 

Description

The PrintDocument method attempts to print out the document at the specified path using the file’s associated file type. For example, pointing to a file with a .txt extension will print the document using Notepad.