Hi,
class com.aspose.email.system.exceptions.ArgumentException: The start date should be less than the date completed.
com.aspose.email.MapiTask.b(SourceFile:510)
com.aspose.email.MapiTask.setRecurrence(SourceFile:601)
Please advise.
Thanks
Hi,
class com.aspose.email.system.exceptions.ArgumentException: The start date should be less than the date completed.
com.aspose.email.MapiTask.b(SourceFile:510)
com.aspose.email.MapiTask.setRecurrence(SourceFile:601)
Please advise.
Thanks
Hi,
Hi,
Hi,
PersonalStorage pst = PersonalStorage.create("file.pst", FileFormatVersion.Unicode);
FolderInfo tmpFolder = pst.createPredefinedFolder("Tasks", StandardIpmFolder.Tasks);
Date startDate = new Date();
Date dueDate = new Date();
Calendar tmpCal = Calendar.getInstance();
tmpCal.add(Calendar.DAY_OF_MONTH, -1);
final MapiTask tmpTask = new MapiTask("Task 1", "Task 1 body", startDate , dueDate);
tmpTask.setDateCompleted(tmpCal.getTime()); //Complete a day before current date
tmpTask.setPercentComplete(100);
tmpTask.setStatus(MapiTaskStatus.Complete);
final MapiCalendarMonthlyRecurrencePattern montlyRec = new MapiCalendarMonthlyRecurrencePattern();
montlyRec.setPatternType(MapiCalendarRecurrencePatternType.Month);
Calendar cal = Calendar.getInstance();
montlyRec.setDay(cal.get(Calendar.DAY_OF_MONTH)); //Recurrency day is current day of the month, i.e. one day after the completion date
montlyRec.setPeriod(1);
montlyRec.setEndType(MapiCalendarRecurrenceEndType.NeverEnd);
tmpTask.setRecurrence(montlyRec); //Here the exception
tmpFolder.addMapiMessageItem(tmpTask);
Thanks
Hi,
Thanks. I\ll check again.
Hi,
Please see additional task that I’ve created in the attached pictures, one is before save task and second is after. In Office 365 all possible and I think you need to support this and not tell that such task is not possible.
Hi,
The issues you have found earlier (filed as EMAILJAVA-33533) have been fixed in this update.