2010-10-01 68 views

回答

3

該信息通過outlook COM接口公開,所以任何可以講COM的語言都可以正常工作。

我曾經寫過一段代碼,做了這個(和更多),你可以see the source yourself

如果你不能打擾通過代碼看,在你做一個概括地說:

// Also, don't forget to add a project reference to the outlook COM object 
using Microsoft.Office.Interop.Outlook; 

... 

var outlookNS = OutlookApp.GetNamespace("MAPI"); 
var calendar = outlookNS.GetDefaultFolder(OlDefaultFolders.olFolderCalendar); 

foreach (AppointmentItem item in calendar.Items) 
{ 
    // Mandatory attendees (in the "To:" field) 
    foreach (var attendee in item.Recipents) 
     Console.WriteLine("Attendee {0}", attendee); 

    // Optional Attendees (in the "CC:" field) 
    foreach (var attendee in item.OptionalAttendees) 
     Console.WriteLine("Attendee {0}", attendee); 
} 
2

在Perl中你可以使用的Win32 :: OLE。

請參閱檢查this link,當然還有該模塊附帶的文檔。

你也應該能夠簡單地用Win32 :: OLE重寫上面給出的VB代碼給perl。

並且還參見this other question

相關問題