[AccessD] Print various document types from Access

Jürgen Welz jwelz at hotmail.com
Mon Jan 9 13:46:35 CST 2006


ShellExecute

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarvb4/html/msdn_shelexec.asp

I have a mult-select list box showing the files and let the user click print 
after selecting 1 or more files.


Ciao
Jürgen Welz
Edmonton, Alberta
jwelz at hotmail.com





>From: "John Colby" <jwcolby at colbyconsulting.com>
>>
>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