473,408 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

HOw to add items to CDO Fields collection?

Hi All,

I'm trying to implement a Knowledge Base article
(http://support.microsoft.com/?kbid=174211) in C# to use
SENT_REPRESENTING Properties. But I'm unable to set the PropsetID of
the Fields.Add. I keep getting and E_INVALIDARG error.

field=(MAPI.Field)fields.Add(
String.Empty,
MAPI.CdoFieldType.CdoEmpty,ae.Type,
MAPI.CdoPropTags.CdoPR_SENT_REPRESENTING_ADDRTYPE) // <-- HERE

this does compile but does not seems to set the propset id:

field=(MAPI.Field)fields.Add(
"PR_SENT_REPRESENTING_EMAIL_ADDRESS",
MAPI.CdoFieldType.CdoEmpty,ae.Address,
Missing.Value);

Does anybody know what is the right combination of arguments to make
this work?

Thanks in advance

eperales

Nov 17 '05 #1
0 1884

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! I'v been struggeling with removing selected items from a listview. Anyone that can give me a piece of code that does this? I am a newbee to this C# and cant figure it out.... Regards...
10
by: Kathy Burke | last post by:
HI. in asp.net app, I have an xmlDocument that I transform to the client html. Using xsl I create a few textboxes to capture user input. Each of these are related to <data> elements in the xmlDoc....
7
by: Keith Patrick | last post by:
After completely giving up on finding some way in my ASP.Net app to take a query string URL and redirect to it as a POST instead, I went with a system like so: Upon "redirection," all the...
7
by: Wayne Wengert | last post by:
I have a CheckBoxList with 11 items in the collection. I save the checked item to a SQL DB, A record is created for each item checked for the current customer.I want to redisplay checks in the...
3
by: Dany P. Wu | last post by:
Hi everyone, One of my Windows forms contain two listbox controls, with Add and Remove buttons between them. The idea is to allow users to select multiple items from one ListBox, click the...
10
by: guy | last post by:
why is it that some collection classes, eg BindingList, but others as well do not expose their Items property? It is there as a Protected property so why not make it public? I can work around...
10
by: pamelafluente | last post by:
Hi I have a sorted list with several thousands items. In my case, but this is not important, objects are stored only in Keys, Values are all Nothing. Several of the stored objects (might be a...
6
NeoPa
by: NeoPa | last post by:
Introduction The first thing to understand about Sub-Forms is that, to add a form onto another form takes a special Subform control. This Subform control acts as a container for the form that you...
4
by: randy.buchholz | last post by:
Just trying to get multiple dropdowns's to work inside another control (details view) I'm seeing this error, but not consistantly. I can even cut and paste a working set of controls into a new...
1
by: =?ISO-8859-1?Q?Norbert_P=FCrringer?= | last post by:
Hello, I would like to know how to optimally fill a ListView, which is defined as list, containing several columns? The ListView contains several columns with a certain column name: foreach...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.