If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
ClearRecurrencePattern Problem
I imported some reoccurring appointments and I am using C# to get all
upcoming appointments. I found out you need to use ClearRecurrencePattern to get the current appointment but it always show the appointments for last year. If I enter new reoccurring appointments it works correctly. Any ideas? |
Ads |
#2
|
|||
|
|||
ClearRecurrencePattern Problem
??? Why exactly would you do that? What are you trying to do?
ClearRecurrencePattern removes the recurrence pattern and tuns a recurring appointment to a non-recurring one with the start of the new appointmentset to teh start of the first instance of the recurrence series. If you need the upcoming appointments, look at http://www.outlookcode.com/article.aspx?id=30 Pay attention to the "Recurring items" section. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Mary Smith" wrote in message ... I imported some reoccurring appointments and I am using C# to get all upcoming appointments. I found out you need to use ClearRecurrencePattern to get the current appointment but it always show the appointments for last year. If I enter new reoccurring appointments it works correctly. Any ideas? |
#3
|
|||
|
|||
ClearRecurrencePattern Problem
I am trying to get a list of all upcoming appointments. When the appointment
is a recurrence I get the date it was started instead of the next occurrence. Example one of my appointments was set to start on 1/16/2003 every year but instead of getting the next appointment which is 1/16/2009 I get 1/16/2003. When I use ClearRecurrencePattern it removes the series and return 1/16/2008 but I think it suppose to return 1/16/2009. Does this sound correct? Here is a sample of my code. bool OC = coAppointment.IsRecurring; if (OC == false) { Console.WriteLine(newreminder); Console.WriteLine(coAppointment.Start); Console.WriteLine(coAppointment.IsRecurring); } else { Console.WriteLine(newreminder); coAppointment.ClearRecurrencePattern; Console.WriteLine(coAppointment.Start); Console.WriteLine(coAppointment.IsRecurring); } "Dmitry Streblechenko" wrote in message ... ??? Why exactly would you do that? What are you trying to do? ClearRecurrencePattern removes the recurrence pattern and tuns a recurring appointment to a non-recurring one with the start of the new appointmentset to teh start of the first instance of the recurrence series. If you need the upcoming appointments, look at http://www.outlookcode.com/article.aspx?id=30 Pay attention to the "Recurring items" section. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Mary Smith" wrote in message ... I imported some reoccurring appointments and I am using C# to get all upcoming appointments. I found out you need to use ClearRecurrencePattern to get the current appointment but it always show the appointments for last year. If I enter new reoccurring appointments it works correctly. Any ideas? |
#4
|
|||
|
|||
ClearRecurrencePattern Problem
Again, please see http://www.outlookcode.com/article.aspx?id=30 and read the
"Recurring items" section. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Mary Smith" wrote in message ... I am trying to get a list of all upcoming appointments. When the appointment is a recurrence I get the date it was started instead of the next occurrence. Example one of my appointments was set to start on 1/16/2003 every year but instead of getting the next appointment which is 1/16/2009 I get 1/16/2003. When I use ClearRecurrencePattern it removes the series and return 1/16/2008 but I think it suppose to return 1/16/2009. Does this sound correct? Here is a sample of my code. bool OC = coAppointment.IsRecurring; if (OC == false) { Console.WriteLine(newreminder); Console.WriteLine(coAppointment.Start); Console.WriteLine(coAppointment.IsRecurring); } else { Console.WriteLine(newreminder); coAppointment.ClearRecurrencePattern; Console.WriteLine(coAppointment.Start); Console.WriteLine(coAppointment.IsRecurring); } "Dmitry Streblechenko" wrote in message ... ??? Why exactly would you do that? What are you trying to do? ClearRecurrencePattern removes the recurrence pattern and tuns a recurring appointment to a non-recurring one with the start of the new appointmentset to teh start of the first instance of the recurrence series. If you need the upcoming appointments, look at http://www.outlookcode.com/article.aspx?id=30 Pay attention to the "Recurring items" section. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Mary Smith" wrote in message ... I imported some reoccurring appointments and I am using C# to get all upcoming appointments. I found out you need to use ClearRecurrencePattern to get the current appointment but it always show the appointments for last year. If I enter new reoccurring appointments it works correctly. Any ideas? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ClearRecurrencePattern Problem | Mary Smith | Outlook - General Queries | 1 | May 30th 08 07:16 PM |
Outlook 2007 rules problem? CC problem? | MGedge | Outlook - General Queries | 2 | September 6th 07 03:04 AM |
Receiving mail problem with" Enter Network Password" problem. | Denzil | Outlook - General Queries | 5 | February 25th 07 12:48 PM |
conection problem on office 2003/instalation problem with beta 200 | Martin O | Outlook - Installation | 0 | September 16th 06 08:52 PM |