Error in startup - InfoPath Dev
in

InfoPath Dev

Error in startup

Last post 07-13-2006 01:18 AM by K.Ramana Reddy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-12-2006 05:25 PM

    • garym
    • Top 500 Contributor
    • Joined on 07-12-2006
    • USA
    • Posts 29

    Error in startup

    I have the following statement in my startup routine.

    thisXDocument.DOM.selectSingleNode("//my:UserLookup").text = "Gary"

    I am trying to pre-populate the user lookup field and I receive the following error

    The _Startup or _Shutdown method in this form's code contains one or more calls to members of the Microsoft.Office.Interop.InfoPath.SemiTrust namespace. Calls to this namespace from these methods

    How do I modify the field before being displayed to the user?

    Thanks for the help!!

    Gary
  • 07-13-2006 01:18 AM In reply to

    Hi,

    why are you writing this code in the _Startup or _Shutdown method ?.

    You can write this in the Onload event to populate the user lookup field.

    Thanks.
    K.Ramana Reddy / http://www.ggktech.com
    India.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.