Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / February 2006

Tip: Looking for answers? Try searching our database.

VB.net Cannot add userproperties

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ben - 19 Jan 2006 13:35 GMT
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
Sue Mosher [MVP-Outlook] - 01 Feb 2006 15:56 GMT
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?
Signature

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

> Hi,
>
[quoted text clipped - 21 lines]
> objJournalEntry.UserProperties.Add("id", OlUserPropertyType.olNumber).Value
> = 1
Ben - 24 Feb 2006 10:32 GMT
Tks for help !
I will try this method.
And the property "id" doesn't already exist.

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

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

> Hi,
>
[quoted text clipped - 22 lines]
> OlUserPropertyType.olNumber).Value
> = 1
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.