Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Gagnon
  Where is Mike Gagnon?
 Pointe Claire
 Canada
 Mike Gagnon
 To: Darren Larner
  Where is Darren Larner?
 Dudley
 United Kingdom
 Darren Larner
 Tags
Subject: RE: Outlook Automation
Thread ID: 104101 Message ID: 104103 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: Microsoft Office Automation
Date: Friday, August 11, 2006 2:26:15 PM         
   


#DEFINE IMPORTANCENORMAL 1
oOutLookObject = CreateObject('Outlook.Application')
oEmailItem = oOutLookObject.CreateItem(0)

WITH oEmailItem
   .Recipients.Add("me@somewhere.net") && uses the Recipients collection
   .Subject = 'Automation sample'
   .Importance = IMPORTANCENORMAL
   .Body = _cliptext
   .Send
ENDWITH

RELEASE oEmailItem
RELEASE oOutLookObject

> I want to copy the contents of a word document with all it's formatting, images etc. into the body of an outlook email. If I do this manually (Ctrl+C in Word and Ctrl+V in Outlook Body) this works fine. When I come to do this programatically, there is no paste method in outlook. I can issue oWord.Copy() and this copies the contents to the clipboard fine with all the formatting. How do I programatically copy this exactly into my outlook body?
>
> Thanks




Mike Gagnon


ENTIRE THREAD

Outlook Automation Posted by Batfink91 Batfink @ 8/11/2006 1:49:17 PM
RE: Outlook Automation Posted by Mike Gagnon @ 8/11/2006 2:26:15 PM
RE: Outlook Automation Posted by Yuri Rubinov @ 8/11/2006 3:08:07 PM