![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
When I try to use an addin to automatically copy items from an Internet
Calendar to the default calendar, I get a COMException (0x80020009: Cannot move the item) when I try to use AppointmentItem.Move(). The code looks something like this: Imports Microsoft.Office.Interop.Outlook Private Sub InternetCalendarItems_ItemAdd(ByVal item As Object) Handles InternetCalendarItems.ItemAdd, InternetCalendarItems.ItemChanged Dim copy As AppointmentItem Dim source As AppointmentItem source = item ' do some processing to get rid of duplicates in the default calendar; this part works fine copy = source.Copy() copy.Move(Application.Session.GetDefaultFolder(OlD efaultFolders.olFolderCalendar)) ' this line throws the exception End Sub The exception stems from the Internet Calendar folder being read-only, but is there a way to copy the items out of the calendar without throwing the exception? Thanks in advance, J. Paupore |
#2
|
|||
|
|||
![]()
A Move is a Copy followed by a Delete. If this is a read-only folder any
Move would fail. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm wrote in message ups.com... When I try to use an addin to automatically copy items from an Internet Calendar to the default calendar, I get a COMException (0x80020009: Cannot move the item) when I try to use AppointmentItem.Move(). The code looks something like this: Imports Microsoft.Office.Interop.Outlook Private Sub InternetCalendarItems_ItemAdd(ByVal item As Object) Handles InternetCalendarItems.ItemAdd, InternetCalendarItems.ItemChanged Dim copy As AppointmentItem Dim source As AppointmentItem source = item ' do some processing to get rid of duplicates in the default calendar; this part works fine copy = source.Copy() copy.Move(Application.Session.GetDefaultFolder(OlD efaultFolders.olFolderCalendar)) ' this line throws the exception End Sub The exception stems from the Internet Calendar folder being read-only, but is there a way to copy the items out of the calendar without throwing the exception? Thanks in advance, J. Paupore |
#3
|
|||
|
|||
![]()
The workaround would be to create a new appointment and set its properties to match the values from the one in the internet calendar.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx wrote in message ups.com... When I try to use an addin to automatically copy items from an Internet Calendar to the default calendar, I get a COMException (0x80020009: Cannot move the item) when I try to use AppointmentItem.Move(). The code looks something like this: Imports Microsoft.Office.Interop.Outlook Private Sub InternetCalendarItems_ItemAdd(ByVal item As Object) Handles InternetCalendarItems.ItemAdd, InternetCalendarItems.ItemChanged Dim copy As AppointmentItem Dim source As AppointmentItem source = item ' do some processing to get rid of duplicates in the default calendar; this part works fine copy = source.Copy() copy.Move(Application.Session.GetDefaultFolder(OlD efaultFolders.olFolderCalendar)) ' this line throws the exception End Sub The exception stems from the Internet Calendar folder being read-only, but is there a way to copy the items out of the calendar without throwing the exception? Thanks in advance, J. Paupore |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to copy appointment from shared calendar to personal calendar | mwaa | Outlook - Calandaring | 1 | November 15th 06 10:51 PM |
How do I copy someone about an appointment without inviting them? | Karen | Outlook - Calandaring | 1 | October 13th 06 08:23 PM |
copy appointment to another date | help! | Outlook - Calandaring | 1 | October 5th 06 03:54 PM |
How can I automatically copy an appointment to another calendar | Erin | Outlook - Calandaring | 0 | February 2nd 06 06:49 PM |
Copy of Outlook 2002 appointment sent to Public Folder calendar gets to another calendar | QH | Outlook - Calandaring | 1 | February 2nd 06 03:45 PM |