Solved

issue with RecurrenceType  == yearly

Posted on 2010-09-05
2
748 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 60

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
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…

730 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