A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

skip one ocurrence appointment from recurring appointment series



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 12th 09, 08:48 AM posted to microsoft.public.outlook.program_addins
hemaneelagiri via OfficeKB.com
external usenet poster
 
Posts: 22
Default skip one ocurrence appointment from recurring appointment series

Hi
i have recurring appointments in my application which displays & acts like
outlook. when i delete one ocurrence( not whole series) that particular
occurrance delete from that series and rest all same.
And when i am trying to synchronize those appointments to outlook. i am
creting recurring appointmnts with same pattern. but how can i skip the
selected occurrance from that series

Thanks

--
Message posted via http://www.officekb.com

Ads
  #2  
Old October 12th 09, 01:11 PM posted to microsoft.public.outlook.program_addins
hemaneelagiri via OfficeKB.com
external usenet poster
 
Posts: 22
Default skip one ocurrence appointment from recurring appointment series

Hi this extended to earlier mail

i am able to get appointment recurringpatern ,
can we get Appointments in that recurringpattern

i am able to get particular appiotntment with date

AptItem = oNS.GetItemFromID(strEntryId, null) as Microsoft.Office.Interop.
Outlook.AppointmentItem;
Microsoft.Office.Interop.Outlook.RecurrencePattern recurrencePattern =
AptItem.GetRecurrencePattern();
Microsoft.Office.Interop.Outlook.AppointmentItem AptItem =
recurrencePattern.GetOccurrence(strDate);

but i want to get appointment collection based on date range
is it possible

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200910/1

  #3  
Old October 12th 09, 01:24 PM posted to microsoft.public.outlook.program_addins
hemaneelagiri via OfficeKB.com
external usenet poster
 
Posts: 22
Default skip one ocurrence appointment from recurring appointment series

Hi this extended to earlier mail

i am able to get no of appointments in selected appointment reccurring
pattern.
can i get appointmnet based on index like
"(Microsoft.Office.Interop.Outlook.MAPIFolder) fldCalendarApp.Items[i] "

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200910/1

  #4  
Old October 12th 09, 03:30 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default skip one ocurrence appointment from recurring appointment series

You can only retrieve items in a recurring series by using GetOccurrence()
or if the item in the series is in the Exceptions collection. It's the same
if you want to get items in a time range, you have to use GetOccurrence()
repeatedly, calculating the following occurrence based on the recurrence
pattern for the series.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"hemaneelagiri via OfficeKB.com" u54138@uwe wrote in message
news:9d7a8b29655c3@uwe...[i]
Hi this extended to earlier mail

i am able to get no of appointments in selected appointment reccurring
pattern.
can i get appointmnet based on index like
"(Microsoft.Office.Interop.Outlook.MAPIFolder) fldCalendarApp.Items "

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200910/1


  #5  
Old October 13th 09, 01:29 PM posted to microsoft.public.outlook.program_addins
hemaneelagiri via OfficeKB.com
external usenet poster
 
Posts: 22
Default skip one ocurrence appointment from recurring appointment series

when i am trying to get appointmnetitem by using GetOccurrence()

like this
Microsoft.Office.Interop.Outlook.AppointmentItem RecurringAptItems = null;
RecurringAptItems =
recurrencePattern.GetOccurrence(dtFrom);

it is giving below error
"You changed one of the recurrences of this item, and this instance no longer
exists. Close any open items and try again."

can u please help me

--
Message posted via http://www.officekb.com

  #6  
Old October 13th 09, 03:46 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default skip one ocurrence appointment from recurring appointment series

You have to allow for exceptions. If you don't get a specific occurrence
from a correct instance date using GetOccurrence() you have to handle that
and check the Exceptions collection and see if a matching instance is in
that collection. Each Exception object has an OriginalDate property you use
for comparison to see if there's a match with the desired date. You can then
get the new properties of the Exception by using its AppointmentItem object
property, and you can check the Deleted property to see if the instance was
deleted.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"hemaneelagiri via OfficeKB.com" u54138@uwe wrote in message
news:9d87292f6099f@uwe...
when i am trying to get appointmnetitem by using GetOccurrence()

like this
Microsoft.Office.Interop.Outlook.AppointmentItem RecurringAptItems = null;
RecurringAptItems =
recurrencePattern.GetOccurrence(dtFrom);

it is giving below error
"You changed one of the recurrences of this item, and this instance no
longer
exists. Close any open items and try again."

can u please help me

--
Message posted via http://www.officekb.com


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Skip later occurence in a series avatar_58 Outlook - Calandaring 2 October 9th 08 03:53 PM
How do I print only a calendar recurring appointment series only? Kris Outlook - Calandaring 2 June 30th 07 10:46 PM
When i open an existing appointment in Outlook Calendar, then close, it automatically creates an unwanted recurring appointment. David H Outlook - Calandaring 1 June 28th 07 11:32 AM
Recurring appointment/events linked to other recurring appointment uaewhitey Outlook - Calandaring 0 February 2nd 06 08:55 PM
Can I skip one occurrence of a recurring APPOINTMENT? Sam Outlook - Calandaring 2 January 23rd 06 03:40 PM


All times are GMT +1. The time now is 01:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.