count of the messages in incoming archive

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
 
L

Loganatr [MSFT]

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.'
 
P

Pavan Kumar

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top