Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Only prints 1 page
Message
De
26/11/2001 15:49:52
 
 
À
26/11/2001 06:50:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00585073
Message ID:
00585983
Vues:
36
>
ShellExecute(0, "Print", "MyHtml.HTM", .NULL., "C:\", 0)
>And that returns 42, it will open the file, but printing doesn't work.

Using the API directly? I think you may need to send the FullPath of the file in that case. This works for me though:
STRTOFILE('<html><body>hey <b>there</b></body></html>', 'htmltest.htm')
oShellExecute = NEWOBJECT('_shellexecute', HOME() + '\ffc\_environ.vcx')
?oShellExecute.ShellExecute('htmltest.htm', '', 'Print')
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform