Purpose
Print a document (e.g. a Word or Excel file) using the default print settings
Solution
Use a JavaScript or VB call which invokes the "Shell.Application" object.

Example
The following JavaScript function prints a file specified by folder name and file name.
    function print(foldername,filename) {

       // create shell object
       var sh = guixt.CreateObject("Shell.Application");

       // create folder
       var folder = sh.NameSpace(foldername);

       // create file
       var file = folder.ParseName(filename);

       // print
       file.InvokeVerbEx("Print");
    }
    
You call the JavaScript function from your InputScript with e.g.
    CallJS print "F:\temp"  "test.docx"
 

Components
InputAssistant + Controls