Property name for text field in Outlook 2k2/2k3 Contacts?

J

Jack Black

Hi, all!! Anyone know what the property name is for the large text field in
an Outlook 2k2/2k3 Contact is? Tried numerous things and I'm not even close
so far...

Thanks!
Jack
 
J

Jay B. Harlow [MVP - Outlook]

Jack,
This sounds like a question better asked in one of the Outlook newsgroups,
as this is a newsgroup dedicated to Visual Basic .NET.


Have you tried the Body property?


--
Hope this helps
Jay
T.S. Bradley - http://www.tsbradley.net


| Hi, all!! Anyone know what the property name is for the large text field
in
| an Outlook 2k2/2k3 Contact is? Tried numerous things and I'm not even
close
| so far...
|
| Thanks!
| Jack
|
|
 
J

Jack Black

Thanks for replying, Jay!

Yes, I've tried the Body property; unfortunately that isn't it. And the
reason I'm asking here is because I just put together a quick VB.Net app
(VS.Net 2k3) to import a batch of VCF cards into Outlook, and assumed that
was the best place for asking about it... I'll certainly ask in an Outlook
group also...

Thanks!
Jack
 
J

Jay B. Harlow [MVP - Outlook]

Jack,
Can you show code where you are using the Body property?

In every version of Outlook I have (O97 to O2003) ContactItem.Body returns
the "body" of the Contact, which is displayed in the large text box in the
lower right quadrant of the O2003 Contact Form.

Its also how you set the "Body" of the contact. However I believe you may
have a security prompt...

--
Hope this helps
Jay
T.S. Bradley - http://www.tsbradley.net


| Thanks for replying, Jay!
|
| Yes, I've tried the Body property; unfortunately that isn't it. And the
| reason I'm asking here is because I just put together a quick VB.Net app
| (VS.Net 2k3) to import a batch of VCF cards into Outlook, and assumed that
| was the best place for asking about it... I'll certainly ask in an
Outlook
| group also...
|
| Thanks!
| Jack
|
|
|
| message | > Jack,
| > This sounds like a question better asked in one of the Outlook
newsgroups,
| > as this is a newsgroup dedicated to Visual Basic .NET.
| >
| >
| > Have you tried the Body property?
| >
| >
| > --
| > Hope this helps
| > Jay
| > T.S. Bradley - http://www.tsbradley.net
| >
| >
| > | > | Hi, all!! Anyone know what the property name is for the large text
| > field
| > in
| > | an Outlook 2k2/2k3 Contact is? Tried numerous things and I'm not even
| > close
| > | so far...
| > |
| > | Thanks!
| > | Jack
| > |
| > |
| >
| >
|
|
 
J

Jack Black

Jay, thanks for responding!

In my code I'm writing new records via the CreateItem method of the
Outlook.Application object (Outlook.ContactItem). Sample code follows:

Dim oCT As Outlook.ContactItem =
oApp.CreateItem(Outlook.OlItemType.olContactItem)
With sttUser
If .strFullName <> "" Then oCT.FullName = .strFullName
If .strFirstName <> "" Then oCT.FirstName = .strFirstName
If .strNote <> "" Then oCT.Body = .strNote
If .strTitle <> "" Then oCT.Title = .strTitle
oCT.Save()
End With

"sttUser" is a structure that contains data imported from another contact
manager application; some lines have been deleted to save bandwidth. There
are no errors thrown during the Save operation, and all data (except .Body)
are written correctly.

Thoughts? Thanks!
Jack
 
J

Jay B. Harlow [MVP - Outlook]

Jack,
| Thoughts?
I suspect that sttUser.strNote is an empty string, as the following code
works as I stated:

Dim app As New Outlook.Application
Dim contact As Outlook.ContactItem =
DirectCast(app.CreateItem(Outlook.OlItemType.olContactItem),
Outlook.ContactItem)
contact.FirstName = "Jack"
contact.LastName = "Black"
contact.Body = "This is the body of the contact!"
contact.Save()
Return

Are you certain, positive, without a shadow of a doubt, that sttUser.strNote
is not an empty string?

--
Hope this helps
Jay
T.S. Bradley - http://www.tsbradley.net


| Jay, thanks for responding!
|
| In my code I'm writing new records via the CreateItem method of the
| Outlook.Application object (Outlook.ContactItem). Sample code follows:
|
| Dim oCT As Outlook.ContactItem =
| oApp.CreateItem(Outlook.OlItemType.olContactItem)
| With sttUser
| If .strFullName <> "" Then oCT.FullName = .strFullName
| If .strFirstName <> "" Then oCT.FirstName = .strFirstName
| If .strNote <> "" Then oCT.Body = .strNote
| If .strTitle <> "" Then oCT.Title = .strTitle
| oCT.Save()
| End With
|
| "sttUser" is a structure that contains data imported from another contact
| manager application; some lines have been deleted to save bandwidth.
There
| are no errors thrown during the Save operation, and all data (except
..Body)
| are written correctly.
|
| Thoughts? Thanks!
| Jack
|
|
| message
| > Can you show code where you are using the Body property?
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top