Reminder Snooze

  • Thread starter Thread starter j
  • Start date Start date
J

j

Hi All,




Every time i call to Reminder.Snooze method i get the following
exception :

System.ArgumentException: Value does not fall within the expected
range.
at Microsoft.Office.Interop.Outlook.ReminderClass.Snooze(Object
SnoozeTime)


I tried to pass DateTime, and int ( minutes ), but uselessly.



Anyone??
 
You have to pass that method a number of minutes to snooze. It's a long (32
bit) internally, but you can try a Variant object if that doesn't work.
 
Thanks,

I solved this issue, the problem was that i tried to snooze
(programatically) reminder that not currently was Active (IsVisile =
false).

Why i need this, is because my AddIn logic sometime should replace
between mailitems, for example:

in inbox i have mailIem_1 with reminder, and suppose that reminder
already appeared in ReminderDialog and was snoozed for
some period of time, now new mail mailIem_2 arrived and should
replace the mailIem_1 so before deleting the mailIem_1 i need
to clone reminder's detials like reminderSet, RemiderTime and also the
was snooze property (NextReminderDate).

I do next because NextReminderDate property is readonly i can't
write: myNewReminderObj.NextReminderDate =
myOldReminderObj.NextReminderDate,
but i write: myNewReminderObj.Snooz( and here a pass
myOldReminderObj.NextReminderDate minus DateTime.Now) ---> on this
error i got the exception.

the problem is that myNewReminderObj.IsVisible is false and i can't
access it.

HOw can i figured out this problem?? some workaround??
 
Get the original item with the reminder and change the reminder time and or
flag due by property. That will remove the need to work with the Snooze
property in those cases.
 
Thanks, that actually how i work today however, if the old reminder
have for example 2 days overdue in Reminder dialog, then now the new
reminder will not show it. Next time when it wiil appear in reminder
dialog i'll see NOW. This issue i wanted to solve
 
There are only so many ways to work with the reminders dialog and things
displayed in it. Either you work with the original items or the items in the
Reminders collection. What's displayed in the reminders window after you set
all that up is beyond your control. There is no way to refresh that window
or change its display or make it show anything other than what it plans to
show.
 
Back
Top