Wednesday, January 25, 2012

SetContentFromText Method in NotesRichTextItem

For NotesRichTextItem,

Call notesMIMEEntity.SetContentFromText( stream, contentType, encoding ),



In Notes 8.5.2,

We can use ENC_BASE64 as Encoding,

But for 8.5.1, it will not work...

I have tried this for one of my project, It showed "SetContextFromText is null"

I use 1727 for ENC_BASE64, It is working nice now.,


ENC_BASE64 (1727) -- Content-Transfer-Encoding is "base64"
ENC_EXTENSION (1731) -- Content-Transfer-Encoding is user-defined
ENC_IDENTITY_7BIT (1728) -- Content-Transfer-Encoding is "7bit"
ENC_IDENTITY_8BIT (1729) -- Content-Transfer-Encoding is "8bit"
ENC_IDENTITY_BINARY (1730) -- Content-Transfer-Encoding is "binary"
ENC_NONE (1725) -- no Content-Transfer-Encoding header
ENC_QUOTED_PRINTABLE (1726) -- Content-Transfer-Encoding is "quoted-printable"


In Notes 8.5.2,

We can use ENC_BASE64 as Encoding,

But for 8.5.1, which will not work...

I tried this for one of my project, It showed "SetContextFromText is null"

So We have to use 1727 for ENC_BASE64.,

No comments:

Post a Comment