Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 762
  • Last Modified:

issue with RecurrenceType == yearly

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
emeraldpiggy
Asked:
emeraldpiggy
1 Solution
 
Kevin CrossChief Technology OfficerCommented:
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
 
emeraldpiggyAuthor Commented:
thanks its been fixed
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now