1
A
回答
0
我假設你發佈到SO不是SU你需要一個程序化的解決方案。關於這個問題我不太瞭解,但希望這會讓你開始。
下面是如何創建一個新的約會(from OutlookCode.com)
//First thing you need to do is add a reference to Microsoft Outlook 11.0 Object Library. Then, create new instance of Outlook.Application object:
Outlook.Application outlookApp = new Outlook.Application();
//Next, create an instance of AppointmentItem object and set the properties:
Outlook.AppointmentItem oAppointment = (Outlook.AppointmentItem) outlookApp.CreateItem (Outlook.OlItemType.olAppointmentItem);
oAppointment.Subject = "This is the subject for my appointment";
oAppointment.Body = "This is the body text for my appointment";
oAppointment.Location = "Appointment location";
// Set the start date
oAppointment.Start = Convert.ToDateTime ("10/10/2004 10:00:00 AM");
// End date
oAppointment.End = Convert.ToDateTime ("10/10/2004 2:00:00 PM");
// Set the reminder 15 minutes before start
oAppointment.ReminderSet = true;
oAppointment.ReminderMinutesBeforeStart = 15;
//Setting the sound file for a reminder:
set ReminderPlaySound = true
//set ReminderSoundFile to a filename.
//Setting the importance:
//use OlImportance enum to set the importance to low, medium or high
oAppointment.Importance = Outlook.OlImportance.olImportanceHigh;
/* OlBusyStatus is enum with following values:
olBusy
olFree
olOutOfOffice
olTentative
*/
oAppointment.BusyStatus = Outlook.OlBusyStatus.olBusy;
//Finally, save the appointment:
// Save the appointment
oAppointment.Save();
// When you call the Save() method, the appointment is saved in Outlook. Another useful method is ForwardAsVcal() which can be used to send the Vcs file via email.
Outlook.MailItem mailItem = oAppointment.ForwardAsVcal();
mailItem.To = "recipients email address";
mailItem.Send();
要到日曆上的一個參考,你想是這樣的:
Outlook.MAPIFolder MyCalendar = Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar);
+0
我可能會糾正;我曾想過這件事,但認爲這是一個Outlook問題而不是編程問題。 – 2010-07-15 00:12:20
相關問題
- 1. Excel創建一個Outlook日曆事件
- 2. 將多個事件導入Android日曆
- 3. AppleScript將iCal事件從一個日曆移動到另一個日曆
- 4. 保存多個Google日曆事件時缺少EKEvents
- 5. 處理outlook中的多個日曆
- 6. 在Google日曆中保存事件
- 7. 如何將drupal事件日曆與Outlook日曆同步
- 8. 導出日曆事件到谷歌日曆,ical,microsoft outlook
- 9. 無法將日曆事件保存到達爾文日曆服務器
- 10. Google日曆PHP從多個日曆中檢索事件
- 11. 日曆中的事件日期在保存後一天設置
- 12. 在一個.ics文件中將多個事件導入到Outlook 2003
- 13. 將多個日曆事件(非循環)添加到Android
- 14. 將多個文件類型保存到一個文件中
- 15. 將事件保存到用戶的日曆
- 16. iOS如何通過一個循環將許多事件添加到日曆中
- 17. 返回多個日曆事件
- 18. MS Access - 將約會事件添加到共享的Outlook日曆
- 19. Automator +日曆:來自「篩選日曆事件」並添加到另一個日曆中的重複事件
- 20. 將活動從一個日曆複製到另一個日曆
- 21. 完整日曆保存事件
- 22. 無法創建Outlook日曆事件
- 23. EventKit日曆的最後一個事件
- 24. 將事件加載到日曆中
- 25. 將事件添加到日曆中
- 26. Google Apps腳本將事件從一個日曆移動到另一個
- 27. 在MySQL中保存事件的多個日期
- 28. 將數據保存到設備日曆
- 29. 在Outlook中處理保存事件
- 30. 添加新安排到多個日曆在Outlook
這屬於對superuser.com。 – 2010-07-14 19:46:46