Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

extract appointment from personalStorage

$
0
0
Hi
How do I extract Appointment class from PST file ?

I've tried from MapiCalendar :
MapiCalendar mapiAppointment = (MapiCalendar)personalStorage.ExtractMessage(messageInfo).ToMapiMessageItem();

tried to extract directly :
Appointment cal = messageInfo. personalStorage.ExtractMessage(messageInfo);

and loading through AlternateViews :
Appointment cal = Appointment.Load(message.AlternateViews.Where(t => t.ContentType.MediaType == "text/calendar").First().ContentStream);

Also tried through MemoryStream :
MemoryStream ms = new MemoryStream();
mapiAppointment.Save(ms);
Appointment cal = Appointment.Load(ms);

nothing worked.
please help ?

Viewing all articles
Browse latest Browse all 1367

Trending Articles