VB.net Cannot add userproperties

B

Ben

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
 
S

Sue Mosher [MVP-Outlook]

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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
B

Ben

Tks for help !
I will try this method.
And the property "id" doesn't already exist.



"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de news: (e-mail address removed)...
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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top