PDA

View Full Version : STRPCCMD to print a document



ismilemyth
10-23-2006, 03:48 PM
I'm trying to issue a STRPCCMD to print a document from a QDLS folder to a network printer. This is the commmand STRPCCMD PCCMD('print I:subfldrsubfldr2mydoc.doc') PAUSE(*YES) Running it this way only works if the user has a printer directly attached to their pc. Most of our users default print to a network printer in their area. Is there a way to code this command so that the output is directed to their default printer? Also, does the "print" command support all document types? We'll be printing *.DOC, *.XLS, *.PDF and other types. We're looking to do silent prints on these documents rather than opening an application and forcing the users to File/print.

David Abramowitz
10-23-2006, 03:48 PM
Have you tried creating VBA macros that will print the documents in question, and autoloading the macros? Then use STRPCCMD to open the document that contains the macro. Dave