Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Direct print possible?
Message
From
30/11/2000 06:34:30
 
 
To
29/11/2000 22:15:21
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00447168
Message ID:
00447243
Views:
13
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.com
ICQ #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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform