Solved

issue with RecurrenceType  == yearly

Posted on 2010-09-05
2
733 Views
Last Modified: 2012-05-10
hi i am having troubles create outlook YEARLY events when there is an interval
and i checked the msdn , yearly events supposed to be working with interval keyword
please advice


it always through exceptions
2010-09-06 16:31:18,071 [8] FATAL The recurrence pattern is not valid.   at Microsoft.Office.Interop.Outlook.RecurrencePattern.set_Interval(Int32 Interval)
   at SelectAllCS.ThisAddIn.AddUpdateAppointment(S4_Outlook_Appointment appointment, AppointmentItem outlookAppointment) in D:\MortgagePro\TFS2010\OutlookPlugin\S4_Sync\NewContactCS\ThisAddIn.cs:line 530

please advice
0
Comment
Question by:emeraldpiggy
2 Comments
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 250 total points
ID: 33613241
How are you specifying the recurrence type?

See this reference:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.recurrencepattern.aspx

Note that it should be: Outlook.OlRecurrenceType.olRecursYearly

If you follow the links through, there is an example of creating a recurring task and yearly is actually what is shown: http://msdn.microsoft.com/en-us/library/bb623455.aspx

If you are doing it this way, already, please post the pertinent snippet of code so we can see if we spot the issue.

HTH

Kevin
0
 

Author Closing Comment

by:emeraldpiggy
ID: 33880331
thanks its been fixed
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now