如何使用aspose.email for java(jar文件)

时间:2016-03-23 06:40:19

标签: java aspose

我是mac os x developer。我必须使用java(eclipse)在mac os x机器上创建.pst文件。我正在使用aspose第三方jar文件(aspose.email for java)。但是设置每月重复的问题日历中的模式。

但我发现问题是它显示异常 - 持续时间不能超过复发期。

******源代码********

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);

1 个答案:

答案 0 :(得分:0)

我们已经在Aspose.Email论坛中调查了您发布的此问题,并已在论坛中与您分享了反馈意见。这实际上是API的重复功能的问题。如需进一步的帮助,请在Aspose.Email论坛中关注thread

我与Aspose一起担任开发者布道者。