C
Chris
Hi, I'm having trouble setting the FileUnder property of new Contact
items using Redemption's RDOMail object (version 4.0). The contacts
are properly created and show up in an Outlook public folder but their
FileAs is blank (no names visible in card view). Probably something
simple but I just can't seem to get it. Any thoughts?
Public Const CdoPropSetID3 = "0420060000000000C000000000000046"
Public Const CdoContact_FileUnder = "{" & CdoPropSetID3 & "}" &
"0x8005"
Public Const CdoContact_FileUnderID = "{" & CdoPropSetID3 & "}" &
"0x8006"
..
..
Dim c As RDOMail
..
..
c = contactsFolder.Items.Add("IPM.Contact")
..
..
c.Fields(.CdoPR_DISPLAY_NAME_PREFIX) = dr("Title").ToString
c.Fields(.CdoPR_TITLE) = dr("Function").ToString
c.Fields(.CdoPR_GIVEN_NAME) = dr("FirstName").ToString
c.Fields(.CdoPR_SURNAME) = dr("FamilyName").ToString
c.Fields(.CdoContact_EmailEmailAddress) = dr("Email").ToString
c.Fields(.CdoPR_DISPLAY_NAME) = dr("CalcFullNameInv").ToString
c.Fields(.CdoPR_COMPANY_NAME) = dr("Institution").ToString
c.Fields(.CdoPR_BUSINESS_TELEPHONE_NUMBER) = dr("Tel1").ToString
' Trouble with FileAs - the following doesn't work
c.Fields(.CdoContact_FileUnder) = "xxxx"
c.Fields(.CdoContact_FileUnderID) = 1
c.Save()
items using Redemption's RDOMail object (version 4.0). The contacts
are properly created and show up in an Outlook public folder but their
FileAs is blank (no names visible in card view). Probably something
simple but I just can't seem to get it. Any thoughts?
Public Const CdoPropSetID3 = "0420060000000000C000000000000046"
Public Const CdoContact_FileUnder = "{" & CdoPropSetID3 & "}" &
"0x8005"
Public Const CdoContact_FileUnderID = "{" & CdoPropSetID3 & "}" &
"0x8006"
..
..
Dim c As RDOMail
..
..
c = contactsFolder.Items.Add("IPM.Contact")
..
..
c.Fields(.CdoPR_DISPLAY_NAME_PREFIX) = dr("Title").ToString
c.Fields(.CdoPR_TITLE) = dr("Function").ToString
c.Fields(.CdoPR_GIVEN_NAME) = dr("FirstName").ToString
c.Fields(.CdoPR_SURNAME) = dr("FamilyName").ToString
c.Fields(.CdoContact_EmailEmailAddress) = dr("Email").ToString
c.Fields(.CdoPR_DISPLAY_NAME) = dr("CalcFullNameInv").ToString
c.Fields(.CdoPR_COMPANY_NAME) = dr("Institution").ToString
c.Fields(.CdoPR_BUSINESS_TELEPHONE_NUMBER) = dr("Tel1").ToString
' Trouble with FileAs - the following doesn't work
c.Fields(.CdoContact_FileUnder) = "xxxx"
c.Fields(.CdoContact_FileUnderID) = 1
c.Save()