COM Toolkit and VB.NET

Hi,Firstly, let me tell you guyz that I am a novice as far as Lotus Notes and Domino is concerned.

Now my scenario, I have to connect to Lotus Notes address book and retrieve some data for users. I have to do this using VB.NET.

Now my questions :

1)Can I use COM Tool Kit for connecting to Lotus Notes. If yes, where can I download this Toolkit. I have not been able to locate it on this website.

2)If I cant use VB.NET, then what are the other options I have?

Help will be much appreciated.

Thanks,

Ricky

Subject: Yes, the COM toolkit can be used, and No - I can’t locate the COM Toolkit either!

Seems like the COM Toolkit and old Lotus XML Toolkit have been removed from the Toolkit-download page: http://www-10.lotus.com/ldd/down.nsf

Subject: COM Toolkit and VB.NET

Try this search URL to locate the COM toolkit:

http://www14.software.ibm.com/webapp/download/search.jsp?q=COM+toolkit&k=all&pf=Windows

It’s a very old toolkit, though.

Subject: RE: COM Toolkit and VB.NET

Thanks for the replies. The only thing i could find was the COM Toolkit documentation.Is there another way I can connect VB.NET with Lotus Notes? Or any other place I can get the COM Toolkit from.

Thanks Again!

Best Regards!

Ricky

Subject: RE: COM Toolkit and VB.NET

Is there another way I can connect VB.NET with Lotus Notes?

Yes, there is a commercial product (ours) that does this. See Proposion N2N at http://www.proposion.com.

Subject: There really is no such “COM Toolkit”. What you do is install a Notes Client on your machine.

Depending on what version you installed, this registers nlsxbe.dll. If it is not registered, RegSvr32 c:\notespath\nlsxbe.dll

You can then select these references in you VB app

Just start programming using the COM classes.

Subject: RE: There really is no such “COM Toolkit”. What you do is install a Notes Client on your machine.

ftp to ftp.lotus.comcd pub

cd lotusweb

cd devtools

mget com.*

comdoc.chm ← documentation

dtcom.exe ← toolkit

however, this is only usefull for c/c++ developers. All of you VB guys should just do what has been already suggested and include the reference to the .tlb

Subject: To .NET-ify Bill’s answer…

After registering nlsxbe.dll as a COM server (if it wasn’t registered at install):

  • in each project in your solution that needs it, add a reference. Select the COM tab of the reference dialog, and select “Lotus Domino Objects”. This will create a garbage-collectible DLL in your project /bin called Interop.Domino.dll to act as a wrapper around the native Domino object library.

  • in each class that needs to use Notes/Domino, use Imports Domino – that will keep you from having to use the whole namespace every time you declare or set a Notes object.

  • Create a session using the New method rather than CreateObject:

Dim nSession As New NotesSession

nSession.Initialize()

Subject: Thanks Stan.