Jawab Problem With UserProperty

  • 22 Mei 2009 9:37
     
     
    Problem With UserProperty
    Hi, I use the following code inordre to send an appointment to required attendies.
    OutLook.Application app = new Microsoft.Office.Interop.Outlook.Application();
    OutLook.AppointmentItem appointment = (OutLook.AppointmentItem)app.CreateItem(OlItemType.olAppointmentItem);

    and then for appointment object I set the following properties
     appointment.Body = "This appointment is created for testing purpose only";
            appointment.Start = DateTime.Now;
            appointment.End = DateTime.Now.AddHours(3);
       appointment.MeetingStatus = MeetingStatus.olMeeting;
     OutLook.UserProperty ab = appointment.UserProperties.Add("ID", OlUserPropertyType.olInteger,false, Type.Missing);
                    ab.Value = 123;
    appointment.RequiredAttendees = "somuuser@somedomain.com";

    Now, After sending the message then from the required attendee's workstation if I try to read the added User property of the appointmenmt value, then it is showing null value.
    But, if I save the appointment I am able to see the UserProperty value.
    But from another system it is not showing any value.

    How can I fix this problem?
    My intention is I want to insert my Id to each appointment.
    • Dipindahkan oleh nobugzMVP 22 Mei 2009 11:57 not a bcl q (From:.NET Base Class Library)
    •  

Semua Balasan