Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP outlook 2010 automation
Message
From
19/08/2014 01:45:39
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01605430
Message ID:
01606045
Views:
100
>>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform