Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook 2002/XP/Outlook 2000 RTF Body
Message
De
17/11/2001 13:08:57
Larry Anderson
Greenfield Software
London, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Outlook 2002/XP/Outlook 2000 RTF Body
Divers
Thread ID:
00583130
Message ID:
00583130
Vues:
58
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform