Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Direct print possible?
Message
De
30/11/2000 19:43:19
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00447168
Message ID:
00447803
Vues:
15
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform