C# and Lotus Notes

Does anyone have any suggestions for using C# to do a lookup in Lotus Notes address book Any Help would be apppreciatedBig Smile

Thank You


Answer this question

C# and Lotus Notes

  • SIis

    A quick google came up with http://www.proposion.com/site/proposion.nsf/pages/N2N, but it also says you can use ODBC to access Notes. Maybe this helps: http://builder.com.com/5100-6388-5116212.html

  • Clement

    Thanks for the information. I'll try to hunt down the book on Amazon
  • benneh

    I was searching for "Lotus Notes C#", and then for "Lotus Notes ODBC".

  • Javier_Spain

    Thanks for the advise.
  • PeteX

    Hi Snoozer

    As a former Notes programmer, I suggest the following.

    1. The fastest way to retrieve data from a Domino databases is to use the embedded HTTP task running in Domino. The Notes people can create a xml view to display data in the addressbook, It will only take them a few minutes if the know what the are doing.

    You then retrieve the data using a simple HTTP GET request and then parse the xml returned from Domino. You have to do a login before you can retrieve the data because the addressbook has restricted access. Either the use basic http authentication or form based authentication, the Domino administrator can tell you what the server is set to.

    2. If the don't want you to use the HTTP server you can also setup and ODBC connection. This is by fare the must difficult part and slowest connection to retrieve data from the Domino server. You should be able to download the driver from IBMs sites.

    Best regards Niels



  • Dustin Andrews

    What was your google search critera as I tried a few times was was getting the google runaround.

  • Clunk

    You should look at the IBM site for the redbooks:
    http://www.redbooks.ibm.com/abstracts/redp3868.html Open

  • Srig007

    Thanks Karen I did not know that I could integrate with VS2005. Am looking into this right now.

    Snoozer

  • nebiecoder

    There is a good red book about this. It's called something like Lotus Notes and .Net Coexistance...

    You have several options I guess..
    Most easy would be building a webservice that exposes the NAB

  • Sjaakmans

    It's actually very simple.

    Create a new project in VS.Net 2003/2005. Add a reference to to Domino to it (right click on the References in the Solution Explorer, switch to the 'COM' tab, locate "Lotus Domino Object" and click OK).

    Now in your code add a 'using Domino' statement on top of your class.

    In your method you can now create a new NotesSession object as follows:

    NotesSession session = new NotesSession();
    session.Initialize(
    "");
    NotesDatabase db = session.GetDatabase("yourserver", "yourdatabase", false);

    etc. etc. etc.

    This does imply though that you have Lotus Notes installed on your computer.

    /Erwin


  • Deza

    Thanks I'll give it a try.


  • Joseph Sack

    Thank you for the answer back.

  • David Oz

    Hey Snoozer -
    Don't forget to come back and mark replies as answered!  It helps bring results back into VS2005.

    Thanks!
    Karen

  • stormchaser889

    Hi Niels,

    I wonder if you could help me out. I work for a company that uses Lotus Notes as their default email client on each machine. I want to write C# code that sends an email from the client (doesn't have to do any database or background work).

    I don't need to send any attachments or anything.

    I've done this in the past with VB6 and VBA, but have no clue where to start with C#.

    Obviously I'd like to create an email object. Add email addresses and a subject, add some text (preferably formattable) and send the email (just like you can with an MSMail object).

    Any help would be much appreciated.

    ShadowedOne


  • C# and Lotus Notes