Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bring Excel to front
Message
De
13/08/2013 07:37:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
08/08/2013 08:55:21
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01580013
Message ID:
01580357
Vues:
39
>>In the past, when I opened Excel through Automation (from Visual FoxPro), it came to the front automatically.
>>I believe that was with an older version of the operating system. Now it doesn't. I suspect this has to do with
>>some security system implemented by newer versions of the operating system itself, in which case not
>>much can be done... but I wanted to check whether this is really the case.
>>TIA,
>>Hilmar.
>
>
>In order to bring some windows to the front, the process must temporarily attach itself to that process, perform the "bring to front" operation, and then detach. I have some code if you need it. I'll have to dig it up. Here's a Stack Overflow article outlining the procedure: http://stackoverflow.com/questions/3772233/win32-setforegroundwindow-unreliable

Thanks to all for your suggestions; for now, I successfully implemented the solution which Naomi pointed out.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform