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

Free Support Forum - aspose.com

How to convert MapiCalendar to MapiMessage

Hello,
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?
Thanks,
Ming.

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

Hello,
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.
Thanks

@xieming95at163.com,
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.

Hello,
Is there any updates on this issue?
Thanks,

@xieming95at163.com

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.

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