A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Redemption and Outlook 2007 addressbook with IE7 and Vista



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old October 18th 07, 10:33 PM posted to microsoft.public.outlook.program_addins
GR
external usenet poster
 
Posts: 10
Default Redemption and Outlook 2007 addressbook with IE7 and Vista

Hi,

I have code which I have been using for a long time on previous and
current versions of Outlook on XP. This code has always worked.

The problem I am seeing now is on the following combination:

- Vista
- IE7 (protected mode: On)
- Outlook 2007

I have vbscript sitting on a web page behind a button that calls
another vbscript function. That function uses MAPIUtils and makes a
call to AddressBook to open the Outlook Address Book for my user's to
select a name.

This works fine on XP with IE7 and even on Vista, BUT ONLY if I change
the browser window with the button to turn Protected Mode OFF. This
obviously isn't a solution for our user's because of security
concerns. The Outlook AddressBook just does not open up.

Has anyone else run into this? Is there a workaround? Any help is
appreciated.

Thank you in advance.



Here is a snippet of the code that I am calling to open up the Address
Book:


public function AddOutlookNames()

const OL_INTERFACEOBJ = "SafeOutlook.SafeMAPIUtils"
const strOLTitle = "Select Names from Outlook"
const blnOLOneAddress = false
const blnOLForceResolution = false

dim nAddrBookWells, well1Title, well2Title, well3Title, well4Title
dim objRedeem, blnDoSubmit


'Create Redemption object
'======== this works fine
on error resume next
set objRedeem = CreateObject(OL_INTERFACEOBJ)
if err.number 0 then
err.clear
msgbox "Cannot create Redemption object"
exit function
end if


' Configure and launch modal outlook select names dialog, which
returns a collection
' of recipients selected by the user.

dim objRecipients
objRecipients = null

nAddrBookWells = 2
well1Title = "Email"
well2Title = "SMS"


' ADDRESS BOOK DOES NOT APPEAR IN THIS CALL BELOW
set objRecipients = objRedeem.AddressBook (, strOLTitle,
blnOLOneAddress, blnOLForceResolution, nAddrBookWells, well1Title,
well2Title)


if objRecipients is nothing then
msgbox "NOTHING returned from OL NAB" '======== This is
where I abort
objRedeem.Cleanup
set objRedeem = nothing
exit function
end if

AddOutlookNames = ""

' more code here, but I never make it this far

exit function

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A Common Outlook 2007 Contacts and Vista Mail Addressbook Contacts Sailfish Outlook - Using Contacts 10 June 17th 08 09:24 AM
redemption in outlook 2007 r kimball Outlook - Using Contacts 1 August 8th 07 01:46 PM
Outlook 2007 addressbook SRHAustin Outlook - Installation 11 March 6th 07 04:57 PM
Outlook 2007 in Vista Derik S. Trexel Outlook - Installation 0 January 24th 07 03:42 AM
New Version of Redemption - Jan 7, 2007 Tadwick Outlook and VBA 0 January 12th 07 06:42 PM


All times are GMT +1. The time now is 09:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.