Embedded pictures in RT fields -- display on web?

Hi,

I have a document that contains a Rich Text field, and the field contains a mix of text and attached pictures. When I try to display the rich text field on the Web, however, only the text appears with no pictures.

If I look at the document properties, I see that the rich text data is spanned over about 20-30 fields with the same name. To display this field, I’m writing its comments to a web-display only form, into another rich text field, via a WebQueryOpen agent.

Any advice would be appreciated!

Maynard

Subject: Post the code of the QO agent.

Subject: RE: Post the code of the QO agent.

The field name is “StepInstruct”, and I’m inserting its contents as part of a string that the target field (“DetailTable”) gets set to.

Here’s the important part of the code:

[…get data here…]

str_print = str_print & || & doc_currentIn.StepInstruct & ||

[…get more data here…]

doc_this.DetailTable = str_print

Subject: Looking at your code, I can not understand a couple of things…

str_print = str_print & || & doc_currentIn.StepInstruct & ||[…get more data here…]

doc_this.DetailTable = str_print

First, I assume that doc_currentIn is a NotesDocument?

Second “&doc_currentln.StepInstruct &” can not be your code because that will fail because it is a RichText field - Even if it was a text field, you would need doc_currentln.StepInstruct(0) to get the value.

The only ways I can think of to get the images inline as a string would be to export to DXL, convert to HTML and import that stream, or perhaps you could use a NotesDatabase.GetDocumentByURL call to retrieve the HTML

Subject: RE: Looking at your code, I can not understand a couple of things…

Yes, “doc_currentIn” is indeed a NotesDocument. I only posted an excerpt of code…sorry if that confused you.

“doc_currentIn.StepInstruct” does work to extract the text out of the rich text field – I can confirm that becuase that code is actually being used in production.

I’ll try your suggestions and let you know how it goes. Thanks!