When oie.Visible = .t., it works for me.
>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()
>Enddo
>DO WHILE oie.QueryStatusWB ( 6 ) <> 1+2
>enddo
>oie.execwb ( 6, 1 , 0 , 0 )
>