[AccessD] Print various document types from Access

John Colby jwcolby at ColbyConsulting.com
Mon Jan 9 12:27:09 CST 2006


My client currently opens a directory, selects a bunch of files, and from
explorer's right click menu clicks "Print".  The files are sent directly to
the printer.  In fact an instance of the object that "handles" the object
opens and somehow causes it to send to the printer.  Is there any way to use
that functionality from inside Access?  

Try it yourself.  Go to a directory, select a document (a word doc for
instance), right click to get the context menu, click "Print" and watch
closely, you will see Windows open Word, send the doc to the printer (the
default printer for the machine) and then close Word again.  This works for
Office apps, for Tiffs (with a registered viewer) and for PDF files (with
the registered viewer) although it does not close the PDF viewer when
finished for some reason.

I need to know how to call whatever it is that the print menu item calls,
passing in the pathed document name in order to print the object.  Has
anyone done this?

John W. Colby
www.ColbyConsulting.com 





More information about the AccessD mailing list