Board index » delphi » Setting an Appointment in Outlook from Delphi
Nicole Krueger
![]() Delphi Developer |
Sun, 31 Oct 2004 21:25:08 GMT
Setting an Appointment in Outlook from Delphi
What is the proper syntax for creating an appointment in Outlook from
Delphi. I need to set the date and time of the appointment as well as make it have a reminder. I don't want the appointment to show busy on the calendar but I would like to set it to Free, I am unsure how to do this. I also need to set this appointment up for other Recipients, again I am unsure of this. Any help would be greatful! Below is what I currently have and is working great except for I need to add Recipients, a start and end date and time, and make the appointment Free not busy (which is the default). Thanks. var OlApp: _Application; Appointment: AppointmentItem; begin //create the outlook application object OlApp := CoOutlookApplication.Create(); try //create the appointment item Appointment := OlApp.CreateItem(olAppointmentItem) as AppointmentItem; //set the details of the appointment Appointment.Subject := 'Testing'; Appointment.Body := 'Testing'; Appointment.ReminderSet; Appointment.ReminderMinutesBeforeStart := 1 Appointment.Save; finally OlApp.Quit; OlApp := nil end; end; Nicole |