I just cant figure this one out…I have a form with a button and a RT field called “Body”…
in the button I have:
Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim rtItem As NotesRichTextItem
Dim object As NotesEmbeddedObject
Dim imageChoice As Variant
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set db = s.CurrentDatabase
Set uidoc = ws.CurrentDocument
Set doc = uidoc.Document
imageChoice = ws.OpenFileDialog ( True, “Choose Images”, “JPG Images|.jpg|GIF Images|.gif”, “C:\Pics” )
Set rtItem = New NotesRichTextItem ( doc, “Body”)
Set object = rtItem.EmbedObject ( 1453, “”, imageChoice(0), “” )
Call doc.Save ( True, True )
What’s happening is the selected images(can be multiple) is being put in to the document, but not in the desired field to view.
I see in the doc properties a lot of $File entries… but I just don’t know how to make this work.
I’ve view the 6,7, and 8 forums and I see nothing that can help. Examples that appears to be close…don’t work…
The overall result, is to open a directory… view all the images…select mulitple images,
and put them in a field. (then resize then down 60%)…
right now… I can’t even get them to embedded without doing the manual…create, picture… off the tool bar…
Anyone care to guide me?
~Brett