You can use the code given below to print any file that supports the print verb.
The simplest way to find which file-types support the “print” verb is to right click any file and see if “Print” is listed as one of the options in popup menu. Normally all office document types (Word, Excel, PowerPoint), text files etc. support this verb. Verbs are attached to file-types and not to files themselves. So all files of that type will support the verb too.
The code invokes the “Print” command on the file, and is same as right-clicking any file in Windows Explorer and selecting the “Print” option. All you need to do is call this procedure passing it the full filename with path.