Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function from another language
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01337842
Message ID:
01337891
Views:
13
Thanks Jim

I reduced the function
Now it works fine and I dont need to use charset property

I got the decoded value directly with: "cFinalProduct = oStream.ReadText"


*************************

lcHtml = FILETOSTR( SYS(5)+ CURDIR()+ emails.msgtx_path)

oMsg = NEWOBJECT("CDO.Message")
oMsg.BodyPart.ContentTransferEncoding = "quoted-printable"

oStream = oMsg.BodyPart.GetEncodedContentStream
oStream.Writetext = lcHtml
oStream.Flush
oStream = oMsg.BodyPart.GetDecodedContentStream()
cFinalProduct = oStream.ReadText

*************************************
Previous
Reply
Map
View

Click here to load this message in the networking platform