Switching from WebViewPane to regular outlook explorer view and back?

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

Switching from WebViewPane to regular outlook explorer view and back?
 
Martin Welker


Guest


Hi,

is it possible to switch (at runtime) from the regular outlook explorer listview to a WebViewpane and BACK? If yes, is there any example how to do that?


Regards

Martin
Posted 12 Jan, 2007 12:27:40 Top
Fedor Shihantsov


Guest


Hi Martin,

For changing between WebViewPane and ListView you can use the ADXOlFormsManager.ADXBeforeFolderSwitch event in the following way:

private void adxOlFormsManager1_ADXBeforeFolderSwitch(object explorerObj, AddinExpress.OL.ADXOlFormsCollectionItem SrcItem, object SrcFolder, AddinExpress.OL.ADXOlFormsCollectionItem DstItem, object DstFolder)
{
    //Prevent delete cached forms
    adxOlFormsManager1.LockUpdates();
    //Note: LockUpdates is required in Add-in Express Extensions Version 1.####
    if (adxOlFormsManager1.Items[0].ExplorerLayout == AddinExpress.OL.ADXOlExplorerLayout.RightSubpane)
    {
        //Set the WebViewPane layout
        adxOlFormsManager1.Items[0].ExplorerLayout = AddinExpress.OL.ADXOlExplorerLayout.WebViewPane;
    }
    else
    {
        //Clear WebView properties
        DstFolder.GetType().InvokeMember("WebViewOn", System.Reflection.BindingFlags.SetProperty, null, DstFolder, new object[] { false });
        DstFolder.GetType().InvokeMember("WebViewUrl", System.Reflection.BindingFlags.SetProperty, null, DstFolder, new object[] { string.Empty });
        //Set the RightSubpane layout
        adxOlFormsManager1.Items[0].ExplorerLayout = AddinExpress.OL.ADXOlExplorerLayout.RightSubpane;
    }
    adxOlFormsManager1.UnlockUpdates(); 
}


Note: Unfortunatelly, you can not control the WebViewOn, WebViewURL properties dynamically in Outlook XP.
Is related with Office XP bug, see the related link http://support.microsoft.com/default.aspx?scid=kb;en-us;305093

P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 13 Jan, 2007 09:35:53 Top
Martin Welker


Guest


Hi Fedor!

Thanks for your help!

Regards

Martin Welker
Posted 15 Jan, 2007 05:13:48 Top
Fedor Shihantsov


Guest


Posted 23 Feb, 2007 04:04:45 Top