View Single Post
  #3  
Old December 12th 06, 05:46 PM posted to microsoft.public.outlook.program_addins
OctopusThu
external usenet poster
 
Posts: 25
Default How to modify an AppointmentItem?

My Outlook was not of an English version, but the exception should be meaning:
"You do not have the authority(privilege) to move(modify) the item."

The MAPIFolder was the default folder acquired by:

Outlook.MAPIFolder defaultFolder =
applicationObject.GetNamespace("MAPI").GetDefaultF older(Outlook.OlDefaultFolders.olFolderCalendar);

So I think it should be a public one.

By the way, I can create new AppointmentItem in this folder with:

item = (Outlook.AppointmentItem)
defaultFolder.Items.Add(Outlook.OlItemType.olAppoi ntmentItem);


"Ken Slovak - [MVP - Outlook]" wrote:

Where is this MAPIFolder? Is it in a PST file, your Exchange mailbox, a
delegate mailbox, public folder?

What are your permissions on that folder?

Can you perform any other operations on that appointment item? What is the
exact error?

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


"OctopusThu" wrote in message
...
I got an AppointmentItem from an MAPIFolder and try to modify its fields.
But
an exception occurred telling me that I had got no privilege to do
this......

public void modifyItem(AppointmentItem item, CalItem calItem)
{
......
item.End = calItem.endTime; (Exception)
......
}



Ads