Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automation and IE
Message
De
17/06/2005 12:41:35
Tim Muller
Innovative Solutions, Inc.
West New York, New Jersey, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01024241
Message ID:
01024373
Vues:
29
Mike--

>
#DEFINE OLECMDEXECOPT_PROMPTUSER 1
>#DEFINE OLECMDID_PRINT 6
>oIE = CREATEOBJECT('internetexplorer.application')
>oIE.navigate('about:blank')
>_screen.Visible = .f.
>oIE.ExecWB(OLECMDID_PRINT , OLECMDEXECOPT_PROMPTUSER)
>oIE.visible = .t.
Thanks. I'll give it a try. Looks like this will get the printer dialog box up, but what about selecting the correct printer, printing to a file and naming the file?

The Print dialog box appears to let me enter all of my information using the keyboard only. The Windows Scripting Host can be used by my VFP program then to automate the selection of Generic, send to file, etc. This is probably just fine, but I am happier if a Win 32 API (or OLE Automation) solution existed.


Tim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform