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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.