Tks for help ! I will try this method. And the property "id" doesn't already exist.
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> a écrit dans le message de news: e9Ocpi0JGHA.1388[ at ]TK2MSFTNGP11.phx.gbl... Did you try creating the property, then setting its value:
prop = objJournalEntry.UserProperties.Add("id", OlUserPropertyType.olNumber) prop.Value = 1
Does the folder have an existing proeprty named id of another type? -- 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
"Ben" <benboa[ at ]yahoo.fr> wrote in message news:43cf9517$0$10664$626a54ce[ at ]news.free.fr...
[Quoted Text] > Hi, > > I have made a Outlook Addins which use the Journal Folder. > In the items of that folder, i add a custom properties named "id" where i > store information. > It works on every Outlook 2001 to 2003, but i have find an Outlook 2003 > where this field is not added and the operation failed. > Is this a security problem ? > Tks for help ! > > Ben > > example, adding a Journal's item : > > objJournalEntry.Type = "Phone Call" > objJournalEntry.Subject = "mysubjet" > > objJournalEntry.Body = " the body" > > objJournalEntry.Duration = "12" > > objJournalEntry.Start = "12/12/2005..." > > objJournalEntry.UserProperties.Add("id", > OlUserPropertyType.olNumber).Value > = 1 > >
|