Developing Applications that can interact Lotus Notes (.nsf) databases

12,072

Solution 1

Use domino interprop library that allows you to work with database. Like this:

var session = new NotesSession();
session.Initialize("password");
var db = session.GetDatabase("server name", "path to database", false);
if (db == null) throw new ArgumentNullException("cannot load database");
var collection = db.CreateNoteCollection(false);
collection.SelectScriptLibraries = true;
collection.BuildCollection();
var dxlExporter = session.CreateDXLExporter();
dxlExporter.OutputDOCTYPE = false;
var noteId = collection.GetFirstNoteId();
while (noteId != null)
{
     var doc = db.GetDocumentByID(noteId);
     var xml = dxlExporter.Export(doc);
     //do something with DXL
     noteId = collection.GetNextNoteId(noteId);
}

Solution 2

You should find everything you need here http://www.ibm.com/developerworks/lotus/
It's my first stop for working with any IBM technology.

PS http://www.ibm.com/developerworks/lotus/library/domino-msnet/

Solution 3

I had a requirement to communicate with Notes on a project a while ago and the best solution we found was to write web services on the Notes machine to expose the various bits and pieces of information.

You can use Java to do this, there is a pretty rich Java API available that should be able to help you. I'm not aware of any ways to communicate directly with Notes via a .NET API.

I want to read each form and the UI elements available in each form and generate an equivalent .aspx file.

For the section above, I'm not entirely sure what you're after - are you trying to replicate Notes forms in ASP.NET web pages? If so, that could prove to be a tricky task as you'd need to handle all possible elements that are available in Notes and translate them to an ASP.NET equivalent - not exactly something that will be quick to do!

Share:
12,072
Sridhar
Author by

Sridhar

Updated on September 04, 2022

Comments

  • Sridhar
    Sridhar about 1 year

    I am a c# developer interested in developing a windows application to connect to a lotus notes .nsf db and display the information like 1) Number of forms 2) Number of views 3) Script Libraries 4) Actions 5) Agents

    Once I do this, I want to read each form and the UI elements available in each form and generate an equivalent .aspx file.

    I have lotus notes client and designer installed on my system.

    Could anyone suggest how to proceed with this requirement?

  • SiL3NC3
    SiL3NC3 over 4 years
    We were also starting the way of exporting DXL files and import them with a own written importer. So we struggled with the richtext bodies to not cannot export them as proper html...