show outlook address book window in my form - InfoPath Dev
in

InfoPath Dev

show outlook address book window in my form

Last post 02-26-2007 09:24 AM by Shiraz Cupala. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-22-2007 01:33 AM

    • manosb
    • Not Ranked
    • Joined on 02-22-2007
    • Greece
    • Posts 2

    show outlook address book window in my form

    hi everyone
    I am using CDO and i am trying to call the outlook address book from a web based infopath form in a sharepoint site. Always an error occures.
    In preview this code works fine. When i upload the form in a sharepoint site it leads to this error:
    [Collaboration Data Objects - [MAPI_E_LOGON_FAILED(80040111)]])
    I tried everything!!!! Any ideas??????????

    the code tha i use is this

    objOutlook = CreateObject("MAPI.session")

    Try
    objOutlook.logon(ProfileName:="", showDialog:=False, ProfileInfo:="athens" & vbLf & Application.User.UserName)
    Catch
    ObjAddressBook = Nothing
    ObjMessage = Nothing
    objOutlook = Nothing
    Exit Sub
    End Try


    ObjMessage = objOutlook.outbox.messages.add

    ObjAddressBook = objOutlook.addressbook(ObjMessage.recipients, "Receivers", True, True, 1, "Receivers", "", "", 0)

    objOutlook.logoff()
  • 02-26-2007 09:24 AM In reply to

    Re: show outlook address book window in my form

    Welcome to our forum Manos!

    The problem is likely that connecting to Outlook requires full-trust. This is for security reasons (to block email viruses). As soon as you deploy the IP form to SharePoint it is placed in the domain trust mode. So you will either need to codesign your XSN or create an MSI installer for it to do integration with Outlook.
    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.