473,387 Members | 1,903 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,387 software developers and data experts.

[Outlook Automation]Adding user property to contact item

Hi all,

I'm trying to add a user property to an Outlook contact item.
VisualStudio tells me that the method signature was like this:
UserProperties.Add(string Name,Outlook.OlUserPropertyType Type, object
AddToFolderFields, object DisplayFormat)

So, what I do is:
oMyItem.UserProperties.Add("myProperty",Outlook.Ol UserPropertyType.olYesNo,
true, XXX???XXX);

How can I determin the display format?
All I've found on MSDN was a MS Outlook VBA reference. There it says:
"DisplayFormat Optional Long. The index format of the specified
OlUserPropertyType constant."

My next question would then be how to determin the index format of
Outlook.OlUserPropertyType.olYesNo.

Any help is greatly appreciated.
Marcel
Nov 15 '05 #1
0 1751

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

Similar topics

0
by: pcouas | last post by:
Hi, Anyone know how reading Outlook or Outlook express contact File from Javamail ? It seems theses files are named .dbx and .vba Thanks Philippe
0
by: Dan Baker | last post by:
I'm trying to write a stand-alone application which will query the contact database used in Outlook (or maybe Exchange Server). I have no idea where to start looking. Any advice? Dan Baker
0
by: John | last post by:
Hi I am trying to open a new outlook message and add a user defined property to it, from within MS Access using the below code. I am getting an 'Object variable or With block variable not set'...
2
by: Chen | last post by:
Are there any sample code for access Contact items in public folder of Outlook from VB.NET Thanks
9
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
2
by: charliej2001 | last post by:
Hi all Im copying details from an Outlook contact address book into an Access database. Originally I was only copying about 10 fields across, using the the following method, with a line of code...
4
by: kannan | last post by:
Hi, I am new to C# and It may be a simple question. I am trying to loop through MS-Outlook object Contact address list. I can able to find the count using following line. int iAddresscount =...
1
by: kannan | last post by:
Hi, I am trying to loop through outlook contact address and display in messagebox. I have used following code: Outlook._Application olApp = new Outlook.ApplicationClass(); Outlook._NameSpace...
0
by: Lauren Quantrell | last post by:
I'm using the code below to export an Access 2K contact to Outlook 2K. It works fine as long as Outlook is running, however, I get an error is Outlook is closed. The error is: Method 'Save' of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.