Groups | Blog | Home
all groups > dotnet academic > july 2004 >

dotnet academic : Lotus Notes and VB.NET issues


Nilanjan Mitra
7/23/2004 11:52:10 AM
Hi All,



1). Here, we are facing a problem of getting just the "Unread mails" from
the INBOX of our Lotus Notes (Version6.0) into the "notesdocumentcollection"
object.



Our present code (using late binding approach, Ex: - Session =
CreateObject("Notes.NotesSession")) to read the mails from the inbox and
download the attachments to our hard drive, works fine. But right now it is
reading all the mails present in the Inbox irrespective of whether they are
read or unread, hence it will again and again download all the attachments
(for previous mail also, which we do no want)



"db.UnProcessedDocuments" is giving error in this case. Is says, "Not
Implemented" in the exception error message (Inside Catch
block--àex.message).





****************************************************************************
***************





2). And if we go by the other approach of using the early binding
LotusScript then for that purpose, we are adding the "Lotus Notes Automation
Classes" in our project references and when we try to create an object of
"NOTESSESSION" it throws an error. The reason for the error is obvious
because this added reference contains all the INTERFACES into it so we cant
initialize it with "NEW". I mean: - "Dim session as New NOTESSESSION" is not
allowed.



****************************************************************************
***************





Help us on this, Please reply at the soonest possible.

Thanks in advance.



David M. Williams
8/5/2004 12:44:30 PM
[quoted text, click to view]

True, because what you've told it to do is open a specific view, and get all
the documents in that view. It is obeying your instruction.

[quoted text, click to view]

True - because you've not selected any documents.

What you may wish to do is modify your mail template in Lotus Notes so it
contains an additional view; copy the Inbox folder and change the select
criteria by constraining it to only unread messages.

Then, open that view in your VB.NET code and get its
NotesDocumentCollection.

Regards,
David W

AddThis Social Bookmark Button