Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP outlook 2010 automation
Message
 
To
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:
01606077
Views:
77
Unless something has changed, that never worked for us, create object would not work if we had a 64 bit version of Office installed, we never tried again so it might have changed, I'll see if I create a VM with 64 bits office and VFP and try again, but it will take me a while and I am busy as I'll go on vacation next week and I need to wrap up some things... unfortunately a quick search on google seems to agree with me, but I will try anyways.

Thanks,
Hugo

>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
>
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform