Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook 2002/XP/Outlook 2000 RTF Body
Message
From
17/11/2001 13:08:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Outlook 2002/XP/Outlook 2000 RTF Body
Miscellaneous
Thread ID:
00583130
Message ID:
00583130
Views:
57
Hi Everyone,

Has anyone come across the difference between the BODY property of an Outlook 2000 MAILITEM object and the same property of the same object in Outlook 2002 aka Outlook 10?

Our Foxpro 6 app has code to create RTF emails through Outlook which works fine in outlook 2000 but now just shows the RTF data as plain text including all the RTF formatting when using outlook 2002? There would seem to be a new property of the mailitem object called bodyformat but setting this to RTF makes no difference. Why why why why?????

So following code worked fine until upgrading to Office XP:

#DEFINE olMailitem 0
#DEFINE olFormatRichText 3

oOL = CreateObject("Outlook.Application")
oMail = oOL.CreateItem(olMailItem)


WITH oMail
.Subject = 'Test'
.BodyFormat = olFormatRichText
.Body = FILETOSTR('G:\Grow439\GMWORK\testrtf.rtf')
oRecip = .Recipients.Add('a@b')

.Save()
.Display(.T.)
ENDWITH

oOl=.NULL.

This code also results in two security prompts from outlook 2002 before completing! Any thoughts or ideas on this would be very much appreciated.

Best regards

Larry
Regards

Larry Anderson
Next
Reply
Map
View

Click here to load this message in the networking platform