Hi!
Read here (in API section of FAQ/Files/Documents) and in the help file about ShellExecute API function. There are many sample how to use it to 'Open' file (to run it). Probably you can use 'Print' instead of 'Open' as parameter for ShellExecute, that will do what you mentioned.
>MS Office Automation with VFP (does this have an abbreviated moniker like HackFox yet?) explains how one can open up a word document and print it.
>
>But is there a programmatic means that's equivalent to using the file explorer to select a file, right clicking and then selecting print? (IOW, let Windows figure out what app the file belongs to and then fire up a print job ... all in one fell swoop?)
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.