Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call IE from VFP app
Message
De
04/08/2009 11:43:45
 
 
À
04/08/2009 08:48:02
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01416039
Message ID:
01416063
Vues:
60
Why not create a web service and send it behind the scenes? No browser popups needed.

And don't rely on IE. The user may have a different prefered browser.

>We have a VFP9 Windows app that displays our customers information. We want to create a button that will open a new IE window and pass the current customer ID to our ASP.Net web app.
>
>Below is what we are currently doing. This works but if there is a IE session currently running, the below will open the new URL in a new tab in the current session of IE. This causes problems such as cookies being overwritten etc...
>
>How can we make sure a new IE session gets opened that ignores any other IE session?
>
>Thanks,
>
>Jerry
>
>
>tc_url = "www.ouraddress.com"
>tc_Action = [OPEN]
>tc_Directory = SYS(2023)
>tc_Params = []
>
>DECLARE INTEGER ShellExecute ;
>	IN SHELL32.dll ;
>	INTEGER nWinHandle, ;
>	STRING cOperation,  ;
>	STRING cFileName,   ;
>	STRING cParameters, ;
>	STRING cDirectory,  ;
>	INTEGER nShowWindow
>
>DECLARE INTEGER FindWindow ;
>	IN WIN32API STRING cNull, STRING cWinName
>
>ShellExecute(FindWindow(0, _SCREEN.Caption), ;
>	tc_Action, tc_Url, tc_Params, tc_Directory, 1)
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform