1

Exchange 2003 用のこの Web パーツを見つけましたが、exchange 2007 では、ユーザーがログインした後でも、web パーツは (現在のユーザーの受信トレイではなく) exchange 2007 owa ログイン ページを表示します。

moss 2007 で現在のユーザーの exchange 2007 受信トレイを表示するにはどうすればよいですか? 何か案が?

4

1 に答える 1

0

解決策は、すぐに使用できるOWA Webパーツの周りにラッパーWebパーツを作成し、現在ログインしているユーザーの電子メールアドレスを使用して受信トレイにアクセスできるようにすることです。

これがコードです

PS (Webアクセスのアドレスはここのアプリ設定で設定されていることに注意してください!)

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);
    }
  }
}
于 2010-01-06T16:40:18.267 に答える