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

Free Support Forum - aspose.com

How to convert MapiCalendar to MapiMessage?

I’m using C# with Apsose.Email handle PST items.
We can convert MapiMessage to MapiCalendar using this method:
var calendar = message.ToMapiMessageItem() as MapiCalendar.
Is there a similar method that can convert a MapiCalendar to MapiMessage?
Currently I need firstly save the calendar as a MSG, then load it again like this:
calendar.Save(“t.msg”, Aspose.Email.Calendar.AppointmentSaveFormat.Msg);
var message = MapiMessage.Load(“t.msg”);
Is there any method which more convenient?

Thank you for the query. Could you please clarify what you do next with MapiMessage after converting from MapiCalendar?

I want to replace the embedded message in recurring events.
Here is a function:
MapiAttachmentCollection.Replace(int index, string name, MapiMessage msg) which require a MapiMessage.

I added a ticket with ID EMAILNET-40292 in our tracking system and described your requirements. Our development team will consider a more convenient way for you. I will let you know as soon as I know.

Is there any updates on this issue?


I regret to share that at present the issue is unresolved. We request for your patience and will share good news with you as soon as the issue will be fixed.

At the moment, Aspose.Email does not provide the more convenient way you required. This information is helpful for this case as well.