Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Reminder Snooze

Geek News

Reminder Snooze
"j" <Evgeny.Br[ at ]gmail.com> 2/19/2007 5:22:11 PM
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??

Re: Reminder Snooze
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/19/2007 10:40:38 PM
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 Options
http://www.slovaktech.com/products.htm


"j" <Evgeny.Br[ at ]gmail.com> wrote in message
news:1171905731.890557.140960[ at ]k78g2000cwa.googlegroups.com...
[Quoted Text]
> 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??
>

Re: Reminder Snooze
"j" <Evgeny.Br[ at ]gmail.com> 2/20/2007 3:06:28 PM
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??


On Feb 20, 12:40 am, "Ken Slovak - [MVP - Outlook]"
<kenslo...[ at ]mvps.org> wrote:
[Quoted Text]
> 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
>
> "j" <Evgeny...[ at ]gmail.com> wrote in message
>
> news:1171905731.890557.140960[ at ]k78g2000cwa.googlegroups.com...
>
>
>
> > 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??- Hide quoted text -
>
> - Show quoted text -


Re: Reminder Snooze
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/20/2007 3:55:39 PM
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 Options
http://www.slovaktech.com/products.htm


"j" <Evgeny.Br[ at ]gmail.com> wrote in message
news:1171983988.683560.20140[ at ]q2g2000cwa.googlegroups.com...
[Quoted Text]
> 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??

Re: Reminder Snooze
"j" <Evgeny.Br[ at ]gmail.com> 2/20/2007 5:01:51 PM
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

On Feb 20, 5:55 pm, "Ken Slovak - [MVP - Outlook]"
<kenslo...[ at ]mvps.org> wrote:
[Quoted Text]
> 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
>
> "j" <Evgeny...[ at ]gmail.com> wrote in message
>
> news:1171983988.683560.20140[ at ]q2g2000cwa.googlegroups.com...
>
>
>
> > 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??- Hide quoted text -
>
> - Show quoted text -


Re: Reminder Snooze
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/20/2007 7:34:37 PM
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.

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


"j" <Evgeny.Br[ at ]gmail.com> wrote in message
news:1171990911.345651.161590[ at ]s48g2000cws.googlegroups.com...
[Quoted Text]
> 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

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net