locked
Characters gets larger when MapiSession.SignOn() RRS feed

  • Question

  • Hi,

    We have noticed in Windows7RC when composing a mail using MAPI and the Display of Windows is set to 150% the characters suddenly become larger when MapiSession.SignOn() is executed. This is when MS Outlook 2007 is the default email application.

    Also when Windows Live mail is set as the default email application the code execution freezes at MapiSession.SignOn()

    Following is a sample of the code we use to compose a mail in VFP9 SP2.

    Could someone please advice as what may be causing these problems.


    loMapiSession =

    CREATEOBJECT('MSMAPI.MAPISession.1')
    loMapiMessage =
    CREATEOBJECT('MSMAPI.MAPIMessages.1')

    loMapiSession.SignOn()

    loMAPIMessage.SessionID = loMAPISession.SessionID
    loMAPIMessage.Compose()

    loMAPIMessage.MsgIndex = -1
    loMAPIMessage.MsgNoteText = "Message Body"
    loMAPIMessage.MsgSubject = "Subject"
    loMAPIMessage.RecipIndex = loMAPIMessage.RecipCount
    loMAPIMessage.RecipDisplayName = "aa@.bb.cc"
    loMAPIMessage.RecipAddress = "aa@.bb.cc"
    loMAPIMessage.RecipType = 1
    loMAPIMessage.AddressResolveUI = .F.
    *loMAPIMessage.ResolveName()

    loMAPIMessage.Send(.F.)
    loMAPISession.SignOff()
    Friday, October 2, 2009 2:29 PM

Answers