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

Free Support Forum - aspose.com

How to set daily-weakly-monthly-yearly recurrence pattern in calendar (.pst file) using aspose.email for jar(jar file)

Hello support team,


I am mac os x developer. I have to set weakly,monthly,yearly recurrence pattern to calendar in .pst file. I am using aspose.email for java (jar file).

Below are input and source code .

please give me proper solution for that .

****Source Code

java.util.Calendar calendar = java.util.Calendar.getInstance(java.util.TimeZone.getTimeZone(“GMT”));

calendar.set(2015, java.util.Calendar.JANUARY, 1,0,0,0);

Date startDate = calendar.getTime();

calendar.set(2016, java.util.Calendar.MARCH, 1,0,0,0);

Date endDate = calendar.getTime();

MapiCalendarEventRecurrence f_reccurence = new MapiCalendarEventRecurrence();

f_reccurence.setRecurrencePattern(new MapiCalendarWeeklyRecurrencePattern());

f_reccurence.getRecurrencePattern().setPatternType(MapiCalendarRecurrencePatternType.Week);

f_reccurence.getRecurrencePattern().setOccurrenceCount(3);

f_reccurence.getRecurrencePattern().setPeriod(2);

f_reccurence.getRecurrencePattern().setEndType(MapiCalendarRecurrenceEndType.NeverEnd);

mapiWeakly = new MapiCalendar(“This is Location”, “This is Weekly”, “This is description”,startDate, endDate);

mapiWeakly.setLocation(“This is location”);

mapiWeakly.setRecurrence(f_reccurence);



*************************************************





Hi Ajinath,

Thank you for contacting Aspose Support team.

Can you please share with us the Aspose.Email for Java API version that you are using at your end? We have tested this issue at our end and were not able to reproduce the problem as you have mentioned. Please try using the latest version of the API i.e. Aspose.Email for Java 6.3.0 at your end and share your feedback with us.