Group:  Microsoft Outlook » microsoft.public.outlook.program_addins
Thread: VB.net Cannot add userproperties

Geek News

VB.net Cannot add userproperties
"Ben" <benboa[ at ]yahoo.fr> 1/19/2006 1:36:42 PM
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


Re: VB.net Cannot add userproperties
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 2/1/2006 3:56:11 PM
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
>
>
Re: VB.net Cannot add userproperties
"Ben" <benboa[ at ]yahoo.fr> 2/24/2006 10:32:49 AM
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
>
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net