Get grouped by mail items

J

j

Hi All,


I'm using vsto 2005 c# .net 2.0.

How it possible to get items collection as them appear in view e.g. in
folder MyFolder mail items groupe by From and Size columns, how can i
get this items collection and over on it.




Tnx in advance.
 
K

Ken Slovak - [MVP - Outlook]

You can't get whatever is in the view, only a filtered set of items or all
items or the selected items. If you read the current view and reverse
engineer any view filter that's set and then apply the same filter to the
Items collection of the folder you can do it, but none of that is documented
that I'm aware of.
 
J

j

Thanks,

1. So in whcich order i get the itmes colelction?? mapiFolder.items
Randomaly ???

2. Maybe Redemption will help me in some way ???






Tnx in advance.
 
K

Ken Slovak - [MVP - Outlook]

There is nothing that will let you get the items in a view other than what I
said that I know of. When you get an Items collection it will be in the
order in which the items were created in the folder, sorted up or down
depending on how you sort or don't sort the Items collection.
 

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