Notes Ole / COM Displaying an Item

Is it possible via OLE / COM to display an item? I am using OLE from Delphi to create a mail item, I can connect, create the item, set fields, save and/or send it, I cannot, however, display it!

My aim is, from my program, to create the email, fill in some fields then leave it on screen for the user to modify further before sending. I was hoping for Document.Display or Document.Show similar to Outlook OLE but can’t find anything.

Any suggestions would be much appreciated, examples in VB or whatever would be great.

thanks,

Chris.

Subject: Notes Ole / COM Displaying an Item

You can use UI-classes with OLE, you cannot with COM

in visual basic you can access notes via OLE with

set session = createobject(“Notes.NotesSession”)

set ws=createobject(“Notes.NotesUIWorkspace”)

you can show your document to the user with :

call ws.editdocument(true,NotesDocument)

access via COM is with:

set session=createobject(“Lotus.NotesSession”)

call session.initialize

No UI action is possible

Subject: RE: Notes Ole / COM Displaying an Item

That’s excellent, thank you so much!

Subject: RE: Notes Ole / COM Displaying an Item

Hi Joris,

Using the UI class works great, I can now display my document (as long as I have saved it first). As a follow up do you know if it is possible to bring it forward do it appears on top of my app rather than underneath?

Thanks for all of your help.

Chris.

Subject: RE: Notes Ole / COM Displaying an Item

in VB you can use the AppActivate statement to give the focus to a certain window.I don’t know for Delphi.

Whatever : it’s not a Notes problem.