How to convert MapiCalendar to MapiMessage using Aspose.Email for java API

Hi,
I have to create .MSG from MapiCalendar object. please provide me the sample code.

@kharade.a,

You can have a look at our documentation article section, saving calendar as MSG , for sample code in this regard.

How to convert MapiCalendar object to Appointment Object. I have read that document but i did not get MapiCalendar to MSG. I have a MapiCalendar Object and i need to convert it into MSG file.

MapiCalendar to Appointment.

@kharade.a,

You may please give a try to the following sample code and share the feedback.

MapiCalendar cal = new MapiCalendar();
cal.Save("output.msg", AppointmentSaveFormat.Msg);