asked on
ASKER
public static void Test()
{
GroupwareTypeLibrary.Application groupwiseApp;
GroupwareTypeLibrary.Account groupwiseAccount;
object gwAppointment = "GW.MESSAGE.APPOINTMENT";
object _missing = System.Reflection.Missing.Value;
object egwDraft = 4;
string mypassword = "abc123";
groupwiseApp = new GroupwareTypeLibrary.Application();
groupwiseAccount = groupwiseApp.Login("", "", mypassword, 0, _missing);
//Create a New Appointment
GroupwareTypeLibrary.Appointment10 appt;
try
{
appt = (GroupwareTypeLibrary.Appointment10)groupwiseAccount.WorkFolder.Messages.Add(gwAppointment, egwDraft, _missing);
}
catch (System.Exception ex)
{
MessageBox.Show("Could not create Appointment item:\r\n\r\n" + ex.Message);
return;
}
appt.StartDate = DateTime.Now;
appt.EndDate = DateTime.Now.AddMinutes(30);
appt.AlarmSet = false;
appt.Subject.PlainText = "This is the Subject";
string messageID = appt.MessageID.ToString();
string RetString;
string cmdOpenMessage = "ItemOpen(\"" + messageID + "\")";
GroupWiseCommander.GWCommander gwc = new GroupWiseCommander.GWCommander();
gwc.Execute(cmdOpenMessage, out RetString);
return;
}
ASKER
Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.
TRUSTED BY