View modification not refresed on currentfolder

G

Guest

Hi,

When i modify and save a global view using a COM AddIn, the current folder
is not reflected with the changes i made to the global view.

Say my Inbox is using the "Messages" view and i programmatically modify it
to group by from (modifying the view XML) and save the view. I click on this
addin button when the current folder was Inbox. I find that "Inbox" is not
reflected with the new view style. If i navigate to some other folder and
come back to Inbox, i find that the changes i made to the view have been
reflected. Sometimes I have to close and open Outlook to refresh the folder.
Can somebody throw some light on this?

Thanks and Regards,
Laks

P.S. I am calling objApp.ActiveExplorer().CurrentFolder.CurrentView.Apply()
after modification. I am also releasing all my references after i finish the
execution and explicitly call GC.Collect().
 

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