Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Domino Integration

Status
Not open for further replies.

egaither

Programmer
Joined
Nov 10, 2003
Messages
2
Location
US

I've writen applications that automate lotus notes and domino in C++ and VB. The problem I've come across is that I have no idea what I'm doing wrong with .NET. I can't seem to access Items or Attachments or any collection without refering to it by name. I at least need to know how to get a list of the items in a particular collection.

Please help
Thanks
 
Hi, I've written this code in JScript, but I thing is easy to transform it to C#. The last two lines attaches files.

var EMBED_ATTACHMENT = 1453;
var session;
var db;
var doc;
var rti;
session = new ActiveXObject("Lotus.NotesSession.1");
session.Initialize("password");
db = session.GetDatabase("address", "mail\\xxxx.nsf");

doc = db.CreateDocument();
doc.ReplaceItemValue("Form", "Memo");
doc.ReplaceItemValue("Subject", "some subject");

rti = doc.CreateRichTextItem("Body");
rti.AppendText("hello, how are you?");
rti.EmbedObject(EMBED_ATTACHMENT, "", "C:\\Documents and Settings\\ifilipski\\Desktop\\book1.xls", "at1");
rti.EmbedObject(EMBED_ATTACHMENT, "", "C:\\Documents and Settings\\ifilipski\\Desktop\\book1.xls", "at2");

//finally send:
doc.Send(false, "some recipient");


Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top