Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call Internet Explorer not using Activex?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00602810
Message ID:
00602822
Vues:
23
This message has been marked as the solution to the initial question of the thread.
Can always use SHELLEXECUTE
#DEFINE SW_SHOWNORMAL     1 
#DEFINE SW_SHOWMINIMIZED  2 
#DEFINE SW_SHOWMAXIMIZED  3  

DECLARE INTEGER ShellExecute IN shell32;  
    INTEGER hwnd,;  
    STRING  lpOperation,;  
    STRING  lpFile,;  
    STRING  lpParameters,;   
    STRING  lpDirectory,;  
    INTEGER nShowCmd 


=ShellExecute (0, "open", "c:\MyDir\MyTxt.txt", "", "", SW_SHOWMAXIMIZED)
=ShellExecute (0, "open", "http://www.levelextreme.com", "", "", SW_SHOWMAXIMIZED)
>Thanks, that works. Could you help me to know how to open a .TXT file in a similar fashion?
>
>TIA
>
>Luis
>
>
>
>>Hi Luis,
>>
>>Start an instance of Internet Explorer:
>>
>>oIE = CreateObject("InternetExplorer.Application")  && Start an instance of Internet Explorer
>>oIE.Visible = .T.                                   && Make the Internet Explorer application visible
>>
>>oIE.Navigate("http://www.levelextreme.com")      && Navigate to UniverslThread
>>oIE.Navigate(""file:///c:/test.txt")                && Open a text file in the Internet Explorer application window
>>
>>
>>>I'm trying to export files (.HTM, .XLS, .DOC, .TXT, .CSV),
>>>I use GETOBJECT() with .XLS, .DOC, .CSV and it works fine but
>>>what can I use to open IE with the .HTM file I also use
>>>GETOBJECT() but I don't know how to make IE visible, can
>>>someone tell me IE's object model? Besides that, I would like
>>>to know a way to open the .TXT files?
>>>
>>>TIA
>>>
>>>LUIS
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform