Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with C# and .Net Integration with Notes

91 views
Skip to first unread message

SteveM

unread,
Aug 28, 2007, 10:47:07 AM8/28/07
to
Hello,
I am trying to write an app using C# 2.0 that will create a customized
draft email in the Lotus Notes draft folder. I am currently using
Lotus Notes 6 but may be moving to 7 so my solution needs to work with
either. I have discovered how to create a new lotus notes object
giving the userid and password, but what I am wanting to do is utilize
the existing already running Notes application on my desktop.

In other words what I expect to happen is for the customized email to
be stored in the draft folder, and that I NOT be prompted for my
password, but that it simply uses my already signed into existing
application. We have already done this somewhat with a Perl
implementation and OLE, is it possible to do this using the
Interop.Lotus or Interop.Domino COM object within .Net

I would appreciate any help and advice
Thanks
-SteveM

urs meli

unread,
Aug 31, 2007, 10:00:34 AM8/31/07
to
Hi
There's an option in the notes client under
File->Security->user Security in the tab Security Basics called
"Don't prompt for a password from other Notes...."
if this is checked you should be able to create a com session without to
login.


SteveM schrieb:

jtuemmer

unread,
Aug 31, 2007, 12:04:23 PM8/31/07
to

Just posted my answer here too to keep the thread complete...


Steve,

I could not reply to the newsgroup as the server did not allow me to.
So
here is my direct reply...

1. Moving document to folder
You have two options to achieve this: If the document is open in
Notes,
you can use the "Folder" Method of the "NotesUIWorkspace" class. If
you
just have a "NotesDocument" reference, you can use the "PutInFolder"
method of that class.

2. Avoid password prompt
This is due to Notes security. You can circumvent it by selecting the
"File->Security->User Security" menu and setting the check box for
"Don't prompt for a password from other Notes-based programs (reduces
security)". Please take particular notice of the "reduces security" as
this allows any application, not only yours, that executes locally to
access Notes without any restrictions and additional password prompts.


Jochen


jtuemmer

unread,
Aug 31, 2007, 12:07:23 PM8/31/07
to
Hi Steve,

any application that creates a new Notes.NotesSession instance will
need to authenticate the user. The only way to avoid this - to the
best of my knowledge - is by setting the security option in Notes as
described in my last e-mail.

In addition, Notes can leverage the existing user credentials if you
are on a windows platform and synchronize passwords with the OS. This
feature requires a special installation option. If you go to "File-
>Security->User Security" and click the question mark ("?") in the
upper left corner, you get some additional information on this feature
from the Notes online help.

If the perl script does work without prompting the user for a password
as soon as a Notes client is running, the reason might be that the
option not to prompt for a password is already selected or that the
Windows logon details are used.


Hope this helps,

Jochen

0 new messages