A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Calculating total size of mail items



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 17th 08, 01:41 AM posted to microsoft.public.outlook.program_addins
Stuart Parker
external usenet poster
 
Posts: 15
Default Calculating total size of mail items

Hi,

I'm developing an add-in for Outlook 2007 in VB using VSTO 2007 and VS2008
SP1

I have obtained a collection of mail items by using the restrict method on
the inbox (Items older than a particular date)

I need to get the total size of all the mail items in this collection. Is
there a quicker/more accepted method of doing this instead of iterating the
collection with a For Each, and adding the size of each item to a counter
variable ?

Thanks

Ads
  #2  
Old September 17th 08, 02:49 AM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Calculating total size of mail items

Nope. The way you describe is exactly the right approach.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54




"Stuart Parker" wrote:

Hi,

I'm developing an add-in for Outlook 2007 in VB using VSTO 2007 and VS2008
SP1

I have obtained a collection of mail items by using the restrict method on
the inbox (Items older than a particular date)

I need to get the total size of all the mail items in this collection. Is
there a quicker/more accepted method of doing this instead of iterating the
collection with a For Each, and adding the size of each item to a counter
variable ?

Thanks


 




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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating Hyperlinks expect_ed Outlook - Calandaring 3 April 28th 08 02:28 AM
calculating date difference (number of days) mozermay Outlook - Calandaring 4 September 12th 07 12:13 AM
Size of Calendar items Paul D. Robinson Outlook - Calandaring 1 February 27th 07 08:19 PM
Shared Contacts Total Items Discrepancy DeWayne Outlook - Using Contacts 2 April 18th 06 05:14 PM
Sent Items.dbx size Spot Outlook Express 9 January 12th 06 06:00 PM


All times are GMT +1. The time now is 09:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.