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.
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.
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).
C# and Lotus Notes
SIis
Clement
benneh
Javier_Spain
PeteX
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
Clunk
http://www.redbooks.ibm.com/abstracts/redp3868.html Open
Srig007
Snoozer
nebiecoder
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
Joseph Sack
David Oz
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