Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How bring focus to Print/Print Preview Prompt for IE
Message
From
03/06/2003 22:48:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
How bring focus to Print/Print Preview Prompt for IE
Miscellaneous
Thread ID:
00795983
Message ID:
00795983
Views:
99
I am trying to copy/print/print preview using internetexplorer.application automation. It works well for copying into clipboard, but for printing print dialog doesn't get a focus. No luck also when the piece of code below run as a function in MDI APPLICATION with Read Events. Any ideas how to bring a focus to print dialog are greatly appreciated.

Regards
Michael
Public oie As internetexplorer.Application
oie = Createobject( "internetexplorer.application" )

oie.silent = .T.
oie.Visible = .F.
oie.Navigate( "d:\1.htm" )
Do While oie.Busy() && Let the page finish navigating
Enddo
DO WHILE oie.QueryStatusWB ( 6 ) <> 1+2
enddo
oie.execwb ( 6, 1 , 0 , 0 ) 
Next
Reply
Map
View

Click here to load this message in the networking platform