skip one ocurrence appointment from recurring appointment series

Status
Not open for further replies.
H

hemaneelagiri

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

 
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


200910
 
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 "


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

"hemaneelagiri " <u54138@uwe> wrote in message

news:9d7a8b29655c3@uwe...
> 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 "

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

 
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.

"hemaneelagiri " <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

> >
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M How to skip weekends on recurring appointments - OL2010? Using Outlook 4
V VBA Categories unrelated to visible calendar and Visual appointment Categories Outlook VBA and Custom Forms 2
M using excel to sort outlook appointment items Outlook VBA and Custom Forms 4
F Add a category before "Send an Email When You Add an Appointment to Your Calendar" Outlook VBA and Custom Forms 0
B Linking contact to an Appointment Using Outlook 1
S Appointment font size when printing only changes Tasks' font Using Outlook 0
D Copy Appointment Body to Task Body Outlook VBA and Custom Forms 0
S New Outlook Appointment - Select All Body Text and Change Font and Size Outlook VBA and Custom Forms 1
e_a_g_l_e_p_i Outlook 2010 How can I change the font size on right side appointment pane Using Outlook 12
Chiba Create an appointment for all the members Outlook VBA and Custom Forms 1
D Prevent popup of "Do you want to save changes?" when closing after opening an appointment to view Outlook VBA and Custom Forms 2
O Calendar - appointment templates and categories Using Outlook 1
W Appointment userproperties disappear Outlook VBA and Custom Forms 4
Nessa Can't create new appointment Using Outlook 1
F Appointment Show All Fields Using Outlook 1
C Trying to populate an appointment ComboBox from Excel Outlook VBA and Custom Forms 2
A Possible to hide ribbon with custom appointment form? Outlook VBA and Custom Forms 3
W Appointment occurrences change the location property Using Outlook 0
W Space in an Outlook appointment body Using Outlook 0
Dave A Run macro on existing appointment when it changes Outlook VBA and Custom Forms 1
JoeG Appointment Delete/Change Recurrence Outlook VBA and Custom Forms 0
S Display PF contact folder items to select contact to link to appointment Outlook VBA and Custom Forms 1
M Forward Appointment as BCC with VBScript Outlook VBA and Custom Forms 7
K Update Appointment category when changed in Excel Using Outlook 3
S View Appointment in Text Wrap in Outlook 2007 Month Calendar View Using Outlook 0
A Day view - print appointment details Using Outlook 1
R Recover Deleted Appointment in Calendar Using Outlook 0
N Select Appointment subject line from combobox or list Outlook VBA and Custom Forms 1
S Appointment-Cannot set Categories because ConversationID is not set Outlook VBA and Custom Forms 1
D Record Appointment to Calendar on "Public Folder" Outlook VBA and Custom Forms 13
G Copy Contact field to Appointment Custom Form Field Outlook VBA and Custom Forms 2
G How to Copy Multi Select Listbox Data to Appointment Outlook VBA and Custom Forms 3
S Appointment colour categories disappear Using Outlook 4
G Using Data From Combo Box in Appointment Body Outlook VBA and Custom Forms 6
C Set reminder / appointment by right clicking email Using Outlook 1
A Add attachments to appointment based on field values Outlook VBA and Custom Forms 0
S how to set user properties to a newly created appointment Outlook VBA and Custom Forms 12
Y Creating custom appointment request form with multiple mail recipients Outlook VBA and Custom Forms 5
S my vbscript button1_click code works on appointment created but not on opening an existing apntmn Outlook VBA and Custom Forms 16
G Create an Appointment at the Contact's Address From Email Outlook VBA and Custom Forms 0
Diane Poremsky Create Task or Appointment and Insert Selected Text Using Outlook 0
Pierce007 Maps/location in making an appointment Using Outlook 2
A Get shared calendar name or id in custom appointment form Using Outlook 0
Diane Poremsky Create Appointment From Email Automatically Using Outlook 0
C Reminder for single-click appointment Using Outlook 2
P Appointment times are off by one minute Using Outlook 1
M receive mail when appointment category changes and create task from appointment Outlook VBA and Custom Forms 0
B VBA Code to create appointment from email Outlook VBA and Custom Forms 1
Diane Poremsky Create an Outlook appointment from an email message Using Outlook 4
Diane Poremsky Create an Appointment Diary Using Outlook 0

Similar threads

Back
Top