0

Hi guys,
I am new to this forum.I need your help for my outlook sorting problem.I have a listview where i display the mails in my inbox.I need to sort them based on "ReceivedTime" in the descending order.

this is my code for sorting
m_Outlook.Inbox.Items.Sort("[ReceivedTime]", true);

where m_Outlook is my outlook class

but this doesnt seem to work. Any help is highly appreciated.

Thanks in advance

2
Contributors
1
Reply
2
Views
12 Years
Discussion Span
Last Post by ingan
0

Use this
Microsoft.Office.Interop.Outlook.Items oItems =m_Outlook.Inbox.Items;
oItems.Sort("[ReceivedTime]");

Edited by ingan: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.