Recently I wrote an article about creating dynamic tables using the appendtable method of the notesrichtext class…
Someone asked it in one of the table cells created, they could put an inline graphic…
I was like hmmm.
I look at the object model… And the only thing I saw was the notesuiworkspace.import method…
I tried that, but alas, it overwrote the table in my richtext body field…
Has anyone succesfully added in-line graphics to a table in a richtext field?
Thanks so much for any help you may have on this matter…
Subject: Programatically adding images to a richtext field…
Not having tested, but might work using DXL. Test exporting a table with an inline graphic and see how the DXL looks. Try modifing the inline graphic part in the XML and importing back into notes.
Subject: Programatically adding images to a richtext field…
Your only choices in this regard would be to generate DXL and import that, which would require XML skills and a package to create the Base64 encoding necessary for the image data, or to use a third party product such as our Midas Rich Text LSX. In Midas this would be as simple as:
Set rtchunk = rtitem.DefineChunk(“Table 2; Row 1; Column 3”)
Call rtchunk.AppendGraphic(“File”, “c:\temp\MyGraphic.jpg”)
to add a graphic to the third column of the first row of the second table in the rich text field.
But, of course, Midas is a commercial product, so it would cost something. It is just hard to get beyond tha basics with rich text manipulation in Notes without DXL or a third party product (or writing your own API solutution, of course).
Subject: Another third-party app.; Import Image 2 Lotus Notes …
http://www.vcode.no/ii2ln
Subject: Programatically adding images to a richtext field…
Well, I found a posting about using HTML to show the image… So I think that will work for me…
But any other ideas are always useful and appreciated.