>>>>o=createobject("outlook.application")
>>>
>>>Do you have 32 bits outlook? If it is 64 bits then it won't work, you can't automate a 64 bits applications from a 32 bits one (VFP)
>>
>>
>>> If it is 64 bits then it won't work, you can't automate a 64 bits applications from a 32 bits one (VFP)
>>
>>How come I can automate Word and Excel - both 64 bit - from vfp then ?
>
>I do not know, you tell me, it would be great help, we keep installing 32 bit Outlook for it does not work with FoxPro for us, we might be doing something wrong...
There isn't much to tell. I have outlook 2010 64 bit version installed
I can automate Word and Excel - haven't changed any foxpro code
As to outlook mail ( which I don't really use ) all I do is prepare a message and display it
something like
objOutlook = createobject ('Outlook.Application')
objMsg = m.objOutlook.CreateItem(0)
with m.objMsg
.To = iif(!empty(m.Recipient), m.Recipient, '')
.cc = iif(!empty(m.cc), m.cc, '')
.bcc = iif(!empty(m.bcc), m.bcc, '')
.subject = iif(!empty(m.subject), m.subject, '')
endwith
=objMsg.Display(0)
objMsg = null
objOutlook = null
Gregory