Reminder Snooze

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??
 
K

Ken Slovak - [MVP - Outlook]

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.
 
J

j

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??


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.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm




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??- Hide quoted text -

- Show quoted text -
 
K

Ken Slovak - [MVP - Outlook]

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.
 
J

j

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

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.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm




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??- Hide quoted text -

- Show quoted text -
 
K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top