We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Read "Location" from msg saved from Calendar of a PST


When saving the content of a PST using the example code Aspose provide and then processing the msg files for the Calendar items is there any way to identify that the msg is a meeting request and access fields like Location?



Hi Simon,

Thank you for contacting Aspose Support team.

You can use the MessageClass property of the saved item to determine if it is an appointment/meeting type and retrieve the location information as shown in the following code sample.

Sample Code:

string filePath = “000099\00000999.msg”;

MapiMessage mapiMsg = MapiMessage.FromFile(“filePath”);

if (mapiMsg.MessageClass.Equals(“IPM.Appointment”))
MapiCalendar mapiCal = (MapiCalendar)mapiMsg.ToMapiMessageItem();


Excellent thanks.

Hi Simon,

Thank you for sharing feedback and feel free to write to us if you have any further query about the API.