1
我發現this web part爲Exchange 2003,但即使用戶登錄後Exchange 2007中,Web部件顯示Exchange 2007 OWA登錄頁面(而不是當前用戶的收件箱)。如何顯示當前用戶的收件箱中的SharePoint 2007
我怎麼能顯示當前用戶的Exchange 2007在MOSS 2007收件箱?任何想法?
我發現this web part爲Exchange 2003,但即使用戶登錄後Exchange 2007中,Web部件顯示Exchange 2007 OWA登錄頁面(而不是當前用戶的收件箱)。如何顯示當前用戶的收件箱中的SharePoint 2007
我怎麼能顯示當前用戶的Exchange 2007在MOSS 2007收件箱?任何想法?
的解決方案是創建圍繞開箱OWA web部件的包裝的WebPart,並有通過使用當前登錄的用戶的訪問EMAILADDRESS的收件箱。
下面的代碼
附:(注意WebAccess的地址在AppSettings的設置在這裏!)
using System;
using System.Configuration;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Portal.WebControls;
namespace DCubed.SharePoint.WeParts
{
/// <summary>
/// Wrapper around the My Inbox WebPart
/// </summary>
public class MyInboxEx : WebPart
{
/// <summary>
/// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
/// </summary>
protected override void CreateChildControls()
{
// Create the instance of My Inbox Web Part
var inbox = new OWAInboxPart
{
MailboxName = SPContext.Current.Web.CurrentUser.Email,
OWAServerAddressRoot = ConfigurationManager.AppSettings["MailServer"]
};
Controls.Add(inbox);
}
}
}