Problem swithing folder home pages

T

tanutatu

Hi

We have created a VSTO SE Outlook 2007 Addin using C#.

This add-in creates a folder in the default delivery location.
Add-in also creates 2 buttons on the Outlook commandbar.
On click of a command bar button , it shows an html page(html page 1)
as folder home page for the folder created above.
This it does by setting the webviewurl and webviewon property .
This works fine.
Now, on click of the 2nd button, add-in attempts to change the
webviewurl to some other html page by resetting the webview url to
that other html page.(by design)

But this change does not reflect if we click on button 1 and then
immediately on button 2.
Only if we click on sm other folder and then come back to this folder
do we see the changed html page.

How can we achieve this auto refresh of the webview of folder without
doing folder switch?

Thanks in Advance,

Regards
Tanushree
 
K

Ken Slovak - [MVP - Outlook]

You can't really. There's no way to tell an Outlook Explorer (or Inspector
for that matter) window to refresh itself. You might be able to use some
Win32 API calls to get the window to refresh but that's something you'd have
to research.
 
T

tanutatu

can we use any OOM function for the same?

You can't really. There's no way to tell an Outlook Explorer (or Inspector
for that matter) window to refresh itself. You might be able to use some
Win32 API calls to get the window to refresh but that's something you'd have
to research.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm




We have created a VSTO SE Outlook 2007 Addin using C#.
This add-in creates a folder in the default delivery location.
Add-in also creates 2 buttons on the Outlook commandbar.
On click of a command bar button , it shows an html page(html page 1)
as folder home page for the folder created above.
This it does by setting the webviewurl and webviewon property .
This works fine.
Now, on click of the 2nd button, add-in attempts to change the
webviewurl to some other html page by resetting the webview url to
that other html page.(by design)
But this change does not reflect if we click on button 1 and then
immediately on button 2.
Only if we click on sm other folder and then come back to this folder
do we see the changed html page.
How can we achieve this auto refresh of the webview of folder without
doing folder switch?
Thanks in Advance,
Regards
Tanushree- Hide quoted text -

- Show quoted text -
 
K

Ken Slovak - [MVP - Outlook]

No. As I said there's no way to tell an Outlook window to refresh itself.
 

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