Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Direct print possible?
Message
From
30/11/2000 19:43:19
 
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00447168
Message ID:
00447803
Views:
7
Yep. Print instead of Open works.

>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?)
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform