Invoke notesuiworkspace from asp.net app

hi all:i am a Lotus Notes developer being charged with the following task:

environment: asp.net web application

I need to write the code in C# that will launch Lotus Notes client and open session.effective user’s mail db - Calendar.

I then need to bring up a draft Meeting (Appointment form with AppointmentType = 3 i think)… insert the subject, chair, location… etc…

the key is i need to get a handle on the notesuidocument object using c# from and doing insertion…

current i am using Domino COM and it is documented i cannot access and UI functions…

I did some research and was under the impression that if i can get hold of the UI side through OLE… specifically, using interop.Lotus.dll…

can anyone who have done something similar confirm this and point me to the right directions? thanks!!!

Subject: invoke notesuiworkspace from asp.net app

So you want to display the Meeting document in Notes client to the user using COM, right? This might be a problem if the user hasn’t kept Lotus Notes client open while the script runs - I think so.

One option could be create the Document in user’s mail box and email him a document link for this.

Regards

Litty Joseph

Subject: RE: invoke notesuiworkspace from asp.net app

Hi thx for response!

the whole point of this requirement is to launch LN client.

i am using the Process method to achieve that right now. and it is working… in that sense satisfying 1/2 of the requirement.

however, i need the ability to insert text into an opened draft calendar document. using C#… so i need to get hold of the notesuidocument object… this half i am having trouble doing…

Subject: RE: invoke notesuiworkspace from asp.net app

It’s quite easy (although documentation is very light on the subject).

This example will open an appointment document in the owner’s mail file. If Notes isn’t running, it will start it (but will ask for two passwords).

Dim Session As Object, NotesDB As Object

Set Session = CreateObject(“Lotus.NotesSession”)

Session.Initialize

Set uiw = CreateObject(“Notes.NotesUIWorkspace”)

Call uiw.ComposeDocument(DominoName.Text, nsfName.Text, “Appointment”)

Subject: RE: invoke notesuiworkspace from asp.net app

thx for your response!

I have researched into this CreateObject method…

i do not seem to be able to find a method in C# that does the same thing…

did you add any reference to any COM and what are your import statements?

thx!