M
Mike V
I have an application which integrates (usually) with Outlook via the
redemption.dll to access a Contact folder allowing the user to retrieve
names and then the selected contact record.
Generally it works fine but two problems have cropped up in the past
week that have me stumped and I haven't found any relief from past
Usenet postings or the MS knowledge base.
The first problem is that at a couple of installations our application
successfully establishes a connection to the user's contact folder but
when they do a search it comes up empty, even when searching for a name
that is clearly in the contact folder. I am using the MAPITable object
with the Items.Restrict method to select the contacts:
Set MAPITable = CreateObject("Redemption.MAPITable")
sFilter = "[MessageClass]='IPM.Contact' AND [FileAs] >= 'smi'
AND [FileAs] < 'smiz'" (The 'z' is appended by me so that the search
will return all 'smi*' matches
MAPITable.item = m_objOutlookFolder.Items.Restrict(sFilter)
The clients are running XP Pro / Outlook 2003. In the vast majority of
installations it works fine... but in the past week I have had this
problem twice and haven't been able to figure it out. One side note,
our application allows users add new contacts to the Outlook contact
folder. In this case if they add a new contact it is visible to the
Outlook application, but still won't be visible to our application.
Second problem (different installation):
When our application tries to establish a connection with Outlook it
gets the following message: "Microsoft Outlook Error: -1940651692. An
OLE registration error occurred. The program in not correctly
installed. Run setup for the the program."
The computer is XP Pro / Outlook 2003. The little information I have
found from searching the web suggests reinstalling IE 6.0. But I am
hesitant to recommend that to the client unless there is some rational
for it. I'm hoping maybe someone else has run into this and knows the
cause.
Sorry for the long message. Any suggestions would be very much
appreciated.
redemption.dll to access a Contact folder allowing the user to retrieve
names and then the selected contact record.
Generally it works fine but two problems have cropped up in the past
week that have me stumped and I haven't found any relief from past
Usenet postings or the MS knowledge base.
The first problem is that at a couple of installations our application
successfully establishes a connection to the user's contact folder but
when they do a search it comes up empty, even when searching for a name
that is clearly in the contact folder. I am using the MAPITable object
with the Items.Restrict method to select the contacts:
Set MAPITable = CreateObject("Redemption.MAPITable")
sFilter = "[MessageClass]='IPM.Contact' AND [FileAs] >= 'smi'
AND [FileAs] < 'smiz'" (The 'z' is appended by me so that the search
will return all 'smi*' matches
MAPITable.item = m_objOutlookFolder.Items.Restrict(sFilter)
The clients are running XP Pro / Outlook 2003. In the vast majority of
installations it works fine... but in the past week I have had this
problem twice and haven't been able to figure it out. One side note,
our application allows users add new contacts to the Outlook contact
folder. In this case if they add a new contact it is visible to the
Outlook application, but still won't be visible to our application.
Second problem (different installation):
When our application tries to establish a connection with Outlook it
gets the following message: "Microsoft Outlook Error: -1940651692. An
OLE registration error occurred. The program in not correctly
installed. Run setup for the the program."
The computer is XP Pro / Outlook 2003. The little information I have
found from searching the web suggests reinstalling IE 6.0. But I am
hesitant to recommend that to the client unless there is some rational
for it. I'm hoping maybe someone else has run into this and knows the
cause.
Sorry for the long message. Any suggestions would be very much
appreciated.