count of the messages in incoming archive

  • Thread starter Thread starter Pavan Kumar
  • Start date Start date
P

Pavan Kumar

HI ,
Can any one know or send code for me to get the number of messages present
in the incoming archive.
I am having win2003 and using faxcomexlib.dll
Regards
pavan
 
Can you try the following sample code

Int GetInboxCount (FaxServer faxServer)
{
FaxIncomingMessageIterator iterator = null;
int PrefetchSize = 100;

int count = 0;
iterator = faxServer.Folders.IncomingArchive.GetMessages
(PrefetchSize);

while (!iterator.AtEOF)
{
count++;
iterator.MoveNext ();
}

return count ;
}
--
Loganatr [MSFT]
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'
 
Hi ,
Thanks Log for this.
I had implemented same with some little modifications.
Regards
Pavan.
Loganatr said:
Can you try the following sample code

Int GetInboxCount (FaxServer faxServer)
{
FaxIncomingMessageIterator iterator = null;
int PrefetchSize = 100;

int count = 0;
iterator = faxServer.Folders.IncomingArchive.GetMessages
(PrefetchSize);

while (!iterator.AtEOF)
{
count++;
iterator.MoveNext ();
}

return count ;
}
--
Loganatr [MSFT]
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'



Pavan Kumar said:
HI ,
Can any one know or send code for me to get the number of messages present
in the incoming archive.
I am having win2003 and using faxcomexlib.dll
Regards
pavan
 
Back
Top