Hello Forum,
I'm currently trying to add a RichText signature into my mailfile using a Xpage. Therefore I create htmlCode that I render into a computed field, results looks great. Then I wan't to add the result into the CalendarProfile RichTextItem, but the result is HTML code when a create a new mail. I can't find a solution to render the HTML properly.
Is it possible to convert HTML to RichTextItem, maybe using copy/past of the rendered content... Does someone have an idea?
My code snippet:
var rtStyle:NotesRichTextStyle = session.createRichTextStyle();
rtStyle.setPassThruHTML(1);
profDoc.removeItem("Signature_Rich");
var rtField:NotesRichTextItem = profDoc.createRichTextItem("Signature_Rich");
rtField.appendStyle(rtStyle);
rtField.appendText(htmlCode);
profDoc.replaceItemValue("Signature_1", "");
profDoc.replaceItemValue("Signature_2", "");
profDoc.replaceItemValue("Signature", "")
profDoc.save();
Thx in advance and have a nice week-end.
Chris