473,769 Members | 5,823 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[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.Ol UserPropertyTyp e Type, object
AddToFolderFiel ds, object DisplayFormat)

So, what I do is:
oMyItem.UserPro perties.Add("my Property",Outlo ok.OlUserProper tyType.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:
"DisplayFor mat Optional Long. The index format of the specified
OlUserPropertyT ype constant."

My next question would then be how to determin the index format of
Outlook.OlUserP ropertyType.olY esNo.

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

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

Similar topics

0
2131
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
1620
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
1837
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' error on the highlighted line. What am I doing wrong? Thanks Regards
2
2044
by: Chen | last post by:
Are there any sample code for access Contact items in public folder of Outlook from VB.NET Thanks
9
6745
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
2
5134
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 for each piece of data being copied TempContactRST.AddNew TempContactRST!FirstName = c.FirstName TempContactRST!LastName = c.LastName
4
2772
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 = ((Outlook.Application)application).GetNamespace("MAPI").AddressLists.Count; but I want to loop through each contacts and display in the messagebox. How
1
2169
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 olNs = olApp.GetNamespace("MAPI"); Outlook.MAPIFolder oContacts = olNs.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts); Outlook.Items oItems = oContacts.Items;
0
1382
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 object_ContactItem failed" I'm sure I'm missing something here... Any help is appreciated, lq Dim objOutlook As Object Dim objOutlookApp As Object
0
9586
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10210
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10043
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.