Updating reading pane...

Add-in Express™ Support Service
That's what is more important than anything else

Updating reading pane...
 
Heinz-Josef Bomanns




Posts: 206
Joined: 2008-02-28
Hi,

just wondering if and how it's possible to update the reading pane after making some changes to a mail? In particular we change categeries for a mail and save them. The entries in the overview (the one left to the reading pane) are update by Outlook and the added or removed categories are shown correctly. But the reading pane still shows the old settings. We tried

ShowPane(Outlook.OlPane.olPreview, False)
ShowPane(Outlook.OlPane.olPreview, True)

what solved the problem, but that leads - as excpected - to a wild flickering on the screen and is very slow. Thanks for any hints on this...
__________________
Greetings, HJB
Posted 15 Oct, 2015 04:13:52 Top
Andrei Smolin


Add-in Express team


Posts: 18833
Joined: 2006-05-11
Hello HJB,

Do I understand you correctly: changing a property of the selected email and saving the email doesn't update the Reading Pane? What Outlook version are you using? I've just tested the macro below in OL2016; it works as expected.

Sub sdfdsfg()
Dim mail As Outlook.MailItem
Set mail = Application.ActiveExplorer().Selection.Item(1)
mail.Categories = mail.Categories + ";MyCategory"
mail.Save
End Sub


As a workaround, you can change the selection: see Explorer.RemoveFromSelection() and Explorer.AddToSelection().


Andrei Smolin
Add-in Express Team Leader
Posted 16 Oct, 2015 08:49:44 Top