|
|
|
date: Tue, 8 Apr 2008 10:07:50 +0100,
group: microsoft.public.exchange.development
back
Next problem - "wrong" add method available...
OK, the next problem I have is adding a property.
According to this -
http://msdn2.microsoft.com/en-us/library/ms527518(EXCHG.10).aspx - there are
two methods for Fields.Add. Ideally I would want to use the second (Proptag
and value) as I have these. But only the first is available to me in C#. I'm
not sure what to fill in though. The Property I am trying to add
(PR_EFORMS_LOCALE_ID) doesn't seem to have a "name" - I added this item
using MFCMapi then squirted out the various fields in my application to see
what it is set as, and "Name" is empty. I can get the class and the value
but not sure what the PropSetID would be - there isn't a property on the
Field object for this, only ID. using "ID", I fed it the below:
_oFields.Add("PR_EFORMS_LOCALE_ID", 6, 1033, 1072234499);
or
_oFields.Add(""", 6, 1033, 1072234499);
But both give an error of E_INVALIDARG(80070057).
Any idea how I can either feed in the right data (or alternatively access
the other method)? According to the MFCMAPI screen, the property tag is
0x3FE90003, Property ID is 0x3FE9, type is PT_LONG, Property Name is
PR_EFORMS_LOCALE_ID (), Named property kind is MNID_ID, and the named
property guid is {00020328-0000-0000-C000-000000000046} = PS_MAPI.
Ta.
date: Tue, 8 Apr 2008 10:07:50 +0100
author: JamesB
Re: Next problem - "wrong" add method available...
"JamesB" wrote in message
news:47fb35a0$0$26088$db0fefd9@news.zen.co.uk...
> OK, the next problem I have is adding a property.
>
> According to this -
> http://msdn2.microsoft.com/en-us/library/ms527518(EXCHG.10).aspx - there
> are two methods for Fields.Add. Ideally I would want to use the second
> (Proptag and value) as I have these. But only the first is available to me
> in C#. I'm not sure what to fill in though. The Property I am trying to
> add (PR_EFORMS_LOCALE_ID) doesn't seem to have a "name" - I added this
> item using MFCMapi then squirted out the various fields in my application
> to see what it is set as, and "Name" is empty. I can get the class and the
> value but not sure what the PropSetID would be - there isn't a property on
> the Field object for this, only ID. using "ID", I fed it the below:
>
> _oFields.Add("PR_EFORMS_LOCALE_ID", 6, 1033, 1072234499);
>
> or
>
> _oFields.Add(""", 6, 1033, 1072234499);
>
> But both give an error of E_INVALIDARG(80070057).
>
>
> Any idea how I can either feed in the right data (or alternatively access
> the other method)? According to the MFCMAPI screen, the property tag is
> 0x3FE90003, Property ID is 0x3FE9, type is PT_LONG, Property Name is
> PR_EFORMS_LOCALE_ID (), Named property kind is MNID_ID, and the named
> property guid is {00020328-0000-0000-C000-000000000046} = PS_MAPI.
>
A little further info - I tried this:
_oFields.Add("0x3FE90003", 6, 1033, "0002032800000000C000000000000046");
Doesn't give an error now, which is nice, but equally it doesn't seem to
have created the property!
date: Tue, 8 Apr 2008 11:17:58 +0100
author: JamesB
Re: Next problem - "wrong" add method available...
"JamesB" wrote in message
news:47fb4610$0$10639$fa0fcedb@news.zen.co.uk...
>
> "JamesB" wrote in message
> news:47fb35a0$0$26088$db0fefd9@news.zen.co.uk...
>> OK, the next problem I have is adding a property.
>>
>> According to this -
>> http://msdn2.microsoft.com/en-us/library/ms527518(EXCHG.10).aspx - there
>> are two methods for Fields.Add. Ideally I would want to use the second
>> (Proptag and value) as I have these. But only the first is available to
>> me in C#. I'm not sure what to fill in though. The Property I am trying
>> to add (PR_EFORMS_LOCALE_ID) doesn't seem to have a "name" - I added this
>> item using MFCMapi then squirted out the various fields in my application
>> to see what it is set as, and "Name" is empty. I can get the class and
>> the value but not sure what the PropSetID would be - there isn't a
>> property on the Field object for this, only ID. using "ID", I fed it the
>> below:
>>
>> _oFields.Add("PR_EFORMS_LOCALE_ID", 6, 1033, 1072234499);
>>
>> or
>>
>> _oFields.Add(""", 6, 1033, 1072234499);
>>
>> But both give an error of E_INVALIDARG(80070057).
>>
>>
>> Any idea how I can either feed in the right data (or alternatively access
>> the other method)? According to the MFCMAPI screen, the property tag is
>> 0x3FE90003, Property ID is 0x3FE9, type is PT_LONG, Property Name is
>> PR_EFORMS_LOCALE_ID (), Named property kind is MNID_ID, and the named
>> property guid is {00020328-0000-0000-C000-000000000046} = PS_MAPI.
>>
>
> A little further info - I tried this:
>
> _oFields.Add("0x3FE90003", 6, 1033, "0002032800000000C000000000000046");
>
> Doesn't give an error now, which is nice, but equally it doesn't seem to
> have created the property!
>
More info - tried the "Update" method. But this gives an error too;
MAPI_E_NO_SUPPORT (80040102)
date: Wed, 9 Apr 2008 14:59:45 +0100
author: JamesB
Re: Next problem - "wrong" add method available...
See http://www.cdolive.com/cdo10.htm
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"JamesB" wrote in message
news:47fccb8a$0$26074$db0fefd9@news.zen.co.uk...
>
> "JamesB" wrote in message
> news:47fb4610$0$10639$fa0fcedb@news.zen.co.uk...
>>
>> "JamesB" wrote in message
>> news:47fb35a0$0$26088$db0fefd9@news.zen.co.uk...
>>> OK, the next problem I have is adding a property.
>>>
>>> According to this -
>>> http://msdn2.microsoft.com/en-us/library/ms527518(EXCHG.10).aspx - there
>>> are two methods for Fields.Add. Ideally I would want to use the second
>>> (Proptag and value) as I have these. But only the first is available to
>>> me in C#. I'm not sure what to fill in though. The Property I am trying
>>> to add (PR_EFORMS_LOCALE_ID) doesn't seem to have a "name" - I added
>>> this item using MFCMapi then squirted out the various fields in my
>>> application to see what it is set as, and "Name" is empty. I can get the
>>> class and the value but not sure what the PropSetID would be - there
>>> isn't a property on the Field object for this, only ID. using "ID", I
>>> fed it the below:
>>>
>>> _oFields.Add("PR_EFORMS_LOCALE_ID", 6, 1033, 1072234499);
>>>
>>> or
>>>
>>> _oFields.Add(""", 6, 1033, 1072234499);
>>>
>>> But both give an error of E_INVALIDARG(80070057).
>>>
>>>
>>> Any idea how I can either feed in the right data (or alternatively
>>> access the other method)? According to the MFCMAPI screen, the property
>>> tag is 0x3FE90003, Property ID is 0x3FE9, type is PT_LONG, Property Name
>>> is PR_EFORMS_LOCALE_ID (), Named property kind is MNID_ID, and the named
>>> property guid is {00020328-0000-0000-C000-000000000046} = PS_MAPI.
>>>
>>
>> A little further info - I tried this:
>>
>> _oFields.Add("0x3FE90003", 6, 1033, "0002032800000000C000000000000046");
>>
>> Doesn't give an error now, which is nice, but equally it doesn't seem to
>> have created the property!
>>
>
> More info - tried the "Update" method. But this gives an error too;
> MAPI_E_NO_SUPPORT (80040102)
date: Thu, 10 Apr 2008 11:54:28 -0700
author: Dmitry Streblechenko
|
|