Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel - WindowState Property
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00397885
Message ID:
00398123
Vues:
15
>if i have the folow code
>
>tmpsheet = GetObject('','excel.sheet')
>XLApp = tmpsheet.application
>XLApp.Visible = .t.
>
>i have a excel application with a empty workbook...
>
>it's possible to apply the windowsatate property to make the application minimized?
>
>xlapp.application.windowstate = 1 ====> not function!
>
>can anyone help me?
>
>
>
Sergio,

It looks like you're trying to apply VFP WindowState values to Excel. They're different. Try:
#DEFINE xlMaximized -4137
#DEINE xlMinimized -4140
#DEINE xlNormal -4143
xlapp.application.windowstate = xlMinimized
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform