![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |