HighTechTalks DotNet Forums  

Lotus Notes and VB.NET issues

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Lotus Notes and VB.NET issues in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Nilanjan Mitra
 
Posts: n/a

Default Lotus Notes and VB.NET issues - 07-23-2004 , 02:22 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.





Reply With Quote
  #2  
Old   
David M. Williams
 
Posts: n/a

Default Re: Lotus Notes and VB.NET issues - 08-05-2004 , 08:44 AM






"Nilanjan Mitra" <bappamitra (AT) hotmail (DOT) com> wrote

Quote:
Hi All,

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)
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.

Quote:
"db.UnProcessedDocuments" is giving error in this case. Is says, "Not
Implemented" in the exception error message (Inside Catch
block--àex.message).
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




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.