I have the following ocde in the webqueryopen agent:
Dim sesion As New NotesSession
Dim doc2 As NotesDocument
Set doc2 = sesion.DocumentContext
'Set sesion = NotesSession.CurrentSesion
Dim cdb As NotesDatabase
Set cdb = sesion.CurrentDatabase
Dim columnas As NotesView
Set columnas = cdb.GetView("cols")
Dim doc As NotesDocument
Set doc = columnas.GetFirstDocument
Dim rt As NotesRichTextItem
Set rt = doc.GetFirstItem("Texto")
Dim rtFoto As NotesRichTextItem
str1 = rt.GetUnformattedText
str1 = Left$( str1,500)
Set rt = doc.GetFirstItem("Foto")
Set rtfoto = doc2.GetFirstItem("Foto1")
rtfoto.AppendRTItem rt
Set rt = doc2.GetFirstItem("Texto1")
rt.AppendText str1+"[<BR>]"
rt.AppendDocLink doc,"Ver Mas...", "Ver Mas..."
The problem is that the images got corrupted on the "Foto1"field…