【问题标题】:What would be the simplest way to display an Exhange/Outlook meeting room's calendar on a webpage using Exchange Web Services?使用 Exchange Web 服务在网页上显示 Exchange/Outlook 会议室日历的最简单方法是什么?
【发布时间】:2014-05-06 15:22:22
【问题描述】:

使用 Exchange Web 服务在网页上显示 Exchange/Outlook 会议室日历的最简单方法是什么?

无需预订房间、取消会议等,只需在某个会议室显示未来 5 天的会议。

根据我的研究,我认为这些可能是我需要使用的,我只是不确定如何在网页中使用这些代码示例:

http://msdn.microsoft.com/en-us/library/office/dn439786%28v=exchg.80%29.aspx

或者这个:

Getting Room Appointments Efficiently from Exchange

您的回答和指导将不胜感激! 谢谢!

【问题讨论】:

    标签: c# asp.net outlook exchange-server exchangewebservices


    【解决方案1】:

    我建议在 EWS 托管 API 中使用 FindAppointments() 方法。它旨在从邮箱中适合特定日期范围的日历文件夹中检索约会,类似于 Outlook 一次显示一周约会的方式。您需要确保使用有权访问会议室日历的帐户连接到 Exchange 服务。这是一个帮助您入门的小示例:

    // Specify the date range to search and max items returned
    CalendarView calView = new CalendarView(new DateTime(2014, 1, 10), new DateTime(2014, 1, 20), 10);
    
    // Specify the properties to be returned
    calView.PropertySet = new PropertySet(BasePropertySet.FirstClassProperties);
    
    // Find the appointments
    FindItemsResults<Appointment> results = service.FindAppointments(WellKnownFolderName.Calendar, calView);
    

    现在您已经有了所需日期范围的约会,您可以获取这些信息并将它们绑定到您的网页上,以便按照您喜欢的方式显示。例如,您可以使用日历控件并在日历上显示特定日期内的这些约会。我没有完整的工作示例,但这篇文章应该可以帮助您入门:

    How to: Customize Individual Days in a Calendar Web Server Control

    我希望这会有所帮助。如果这确实解决了您的问题,请将此帖子标记为已回答。

    谢谢,

    --- 鲍勃 ---

    【讨论】:

    • 谢谢鲍勃!我会试试这个并用我的进度更新这个线程。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-04-07
    • 1970-01-01
    • 2019-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-13
    相关资源
    最近更新 更多