Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation and IE
Message
From
17/06/2005 12:41:35
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01024241
Message ID:
01024373
Views:
30
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
Previous
Reply
Map
View

Click here to load this message in the networking platform