Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How bring focus to Print/Print Preview Prompt for IE
Message
 
À
05/06/2003 02:07:08
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00795983
Message ID:
00796642
Vues:
49
Michael,

To preview, you need to invoke the application that in turn invokes preview screen. Otherwise you can use modi file from VFP, but it is not what you need, I believe.

Perhaps this is the solution:
oie.Left=-1500
oie.visible=.t.
oie.execwb ( 7, 2 , 0 , 0 ) && preview


>Thanks for the hint.
>But my intention was to create a temporary HTML file behind the scenes and preview before printing , giving all glory to my application, not IE :)
>So I would be interested in any solution which hides IE participation ( either invisible Web Browser control on the existing form or ... ) But nothing works for
>
>oie.execwb ( 7, 2 , 0 , 0 )  && preview
>
>
>unless , as you pointed out, oie is visible.
>
>>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() && Let the page finish navigating
>>>Enddo
>>>DO WHILE oie.QueryStatusWB ( 6 ) <> 1+2
>>>enddo
>>>oie.execwb ( 6, 1 , 0 , 0 )
>>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform