I have a view with an action button. The user clicks the button to open a new document.
They need an attachment to load into a Rich-Text Field.
It loads the attachment into the field just fine, except I can not use “Call Workspace.EditDocument” to open the form up for the user.
How can I load the attachment and have the form open afterward.
Here is what I have -
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim rtitem As NotesRichTextItem
Dim object As NotesEmbeddedObject
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set db = session.CurrentDatabase
Set doc = New NotesDocument( db )
Set rtitem = New NotesRichTextItem( doc, “ScoreSheet” )
Set object = rtitem.EmbedObject _
( EMBED_ATTACHMENT, “”, “M:\COMMON\Matt T\2008 Execution Results Evaluation Sheet.xls”)
doc.Form = “Work Request”
Call Workspace.EditDocument 'This line won’t work
Call doc.Save( True, True ) 'Also I don’t want to have to save
Thanks