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 |
|
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. |
|
Martin Welker
Guest
|
Hi Fedor!
Thanks for your help!
Regards
Martin Welker |
|