Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing HTML in VFP6
Message
 
À
01/12/1999 13:12:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00297280
Message ID:
00297554
Vues:
24
Cool tip Eric! I did a little research and found the references below.

Aaron: you can also use this method to print GIF files as you were looking to do in another post:

#Define OLECMDID_PRINT 6
#Define OLECMDEXECOPT_PROMPTUSER 1
#Define OLECMDEXECOPT_DONTPROMPTUSER 2
#Define READYSTATE_COMPLETE 4

oIE = CreateObject("InternetExplorer.Application")

oIE.Navigate("MyGifFile.GIF")

Do While oIE.ReadyState <> ReadyState_Complete
EndDo

oIE.ExecWB(OLECmdID_Print, OLECmdExecOpt_DontPromptUser)

* Note that if you DO opt to prompt the user, and the cancel button is clicked, a trappable error will occur


MSDN References:

ExecWB Method

OLECMDID Constant definitions for first parameter of ExecWB

OLECMDEXECOPT Constant definitions for second parameter

READYSTATE Enumerated Type ReadyState property constants

Reusing the WebBrowser Control See "Printing the Current Page with the WebBrowser Control" on this page

kenweber
GCom2 Solutions
Microsoft Certified Professional

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform