Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RPC server not available
Message
 
 
À
17/10/2001 22:14:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00570037
Message ID:
00570044
Vues:
18
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>I generate an html file and call IE to display it. On subsequent runs, I check to see if the IE object exists and thus avoid opening other instances of IE.
>
>This works fine unless the user CLOSES the IE window. In that case, a subsequent run gets: RPC server not available
>
>This is my code. How can I detect if the IE window has been closed ?
>
>With Thisform
> If Vartype(.oIE) = [O] And .oIE.Visible
> * Object exists
> Else
> .oIE = CreateObject([InternetExplorer.Application])
> Endif
> .oIE.Navigate(lcHtmlFile)
> .oIE.Visible = .T.
>Endwith
>
>Also, any idea where I can get a list of IE's other exposed methods ?
>
>Thanks,
>

Henry,
oIE still remains an object even if someone closes it. Check out Message#565054 for a work around.

As for the object model, you can check out the type library of IE by opening the Microsoft Internet Controls type library in the Object Browser in VFP 7. If you don't have 7 yet (get it ;-)) you can use the OLE Viewer that comes with Visual Studio 6. Expand the Type Libraries node, right-click on the Internet Controls library and select View from the shortcut menu.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform