ConvertToMIME Method
If you're like me, you've been wondering
for about a decade when Lotus would finally deliver this method. Looks
like with 8.5.1, the wait is at last over. Taken from the Lotus Domino
Designer Help, I give you.... NotesDocument.ConvertToMIME
CONVERT_RT_TO_PLAINTEXT_AND_HTML (3) (default) produces MIME output with two renditions of the Notes rich text: a Text/Plain part and a Text/HTML part. The characteristics of each stream are the same as their corresponding descriptions above. This is useful when the target audience may or may not have an HTML-capable mail reader, or can receive only text.
options
Long. Optional. Reserved for future use.
Usage
The document's form is evaluated and the fields are used in the MIME conversion.
The conversion of rich text is imperfect.
The last sentence must surely send Ben Langhinrichs into hysterics.
Converts a document in Notes format to MIME format similar to a mail router.
Note This method is new in Release 8.5.1.
Defined in
NotesDocument
Syntax
Call notesDocument.ConvertToMIME( conversionType, options )
Parameters
conversionType
Integer. Optional. One of the following:
CONVERT_RT_TO_HTML (2) produces MIME output with a Text/HTML part that is a representation of the Notes rich text. Some data loss is possible in the rendering. Improvements in fidelity may occur at any time.
CONVERT_RT_TO_PLAINTEXT (1) produces MIME output with a Text/Plain part that is a representation of the Notes rich text. Everything but text contained in rich text is lost. For tables, a crude approximation is made using non-graphic characters.
CONVERT_RT_TO_PLAINTEXT_AND_HTML (3) (default) produces MIME output with two renditions of the Notes rich text: a Text/Plain part and a Text/HTML part. The characteristics of each stream are the same as their corresponding descriptions above. This is useful when the target audience may or may not have an HTML-capable mail reader, or can receive only text.
options
Long. Optional. Reserved for future use.
Usage
The document's form is evaluated and the fields are used in the MIME conversion.
The conversion of rich text is imperfect.
The last sentence must surely send Ben Langhinrichs into hysterics.


Comments
Posted by Declan Lynch At 09:51:12 AM On 11/24/2009 |
Posted by Nathan T. Freeman At 09:53:09 AM On 11/24/2009 |
Posted by Erik Brooks At 10:40:39 AM On 11/24/2009 |
Posted by John Vaughan At 10:59:40 AM On 11/24/2009 |
Nathan beat me to a "rich text in views" blog post where this is partly featured.
Posted by Steve Castledine At 11:13:16 AM On 11/24/2009 |
I wonder if it occurred to IBM, which used to be quite proud of its extension points, to make an event or entry point so that you could plug in a superior rendering engine when using this. Probably not, because it can hardly have occurred to them than ANYBODY could make a better rendering engine than they have.
Posted by Ben Langhinrichs At 11:35:01 AM On 11/24/2009 |
I mean, why didn't they contact Ben Langhinrichs, who - as we all know - has developed the best and best proven solution to handle MIME and RT items?
Posted by Mael Rivera At 11:46:38 AM On 11/26/2009 |
The document's form is evaluated and the fields are used in the MIME conversion.
The conversion of rich text is imperfect"
I don't know if I could keep my job saying to my boss "The export of the yearly sales report is imperfect"
But, then again. I'm not IBM.
Posted by Mael Rivera At 11:50:28 AM On 11/26/2009 |