Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook object only works when Debug invoked
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00841740
Message ID:
00842122
Vues:
24
Steve,

Possibly you need to wait until window is activated. Try to set windowstate before/after .Save or .Display

>Yuri,
>
>When I insert this code into my method, I get the error: "ActiveWindow does not evaluate to an object".
>
>Here is the code:
>
>
>With This
>.oOutlook = Createobject( 'Outlook.Application' )
>If Type( 'Thisform.oOutLook' ) = 'O' And Not Isnull( .oOutlook )
>.oNameSpace = .oOutlook.GetNameSpace( 'MAPI' )
>.oOutlook.ActiveWindow.WindowState = 2 &&normal, 0 - maximized
>If Type( 'Thisform.oNameSpace' ) = 'O' And Not Isnull( .oNameSpace )
>llRetVal = .T.
>Endif
>Else
>llRetVal = .F.
>Endif
>
>
>
>Any ideas?
>
>Thanks,
>
>-Steve
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform