Template settings - InfoPath Dev
in

InfoPath Dev

Template settings

Last post 01-22-2007 11:50 PM by hehe. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-19-2007 02:17 AM

    • hehe
    • Top 500 Contributor
    • Joined on 08-23-2006
    • Netherlands
    • Posts 32

    Template settings

    Hi

    I made an xml template to fill in the homemade infopathforms with the userdata like name, phonenumber and emailadress etc...before I used an ini file.

    Can anyone give me an examplecode as to how to make sure that when I open a infopathdocument it automaticly retrieves data from the template with name, email etc...

    I am not that familiair with code yet so please bare with me.
    I am trying to learn VB so if it is possible...

    the xml template looks like this:
    <?xml version="1.0" encoding="utf-8" ?>
    - <usersettings>
    <name>A. Noot</name>
    <functie>Dev</functie>
    <phone>1234</phone>
    <codenummer />
    <afdeling>TD</afdeling>
    <afdelingshoofd>MaBo</afdelingshoofd>
    <afdeling>6501</afdeling>
    <email/>
    </usersettings>

    Hope anyone can help me...
    Greetings
    Henny
  • 01-19-2007 04:12 AM In reply to

    Hi,
    Using NewFromSolutionWithData method we can define it
    for ex:
    var objXDoc = Application.XDocuments.NewFromSolutionWithData("C:\\InitialData.xml", "C:\\MyForm.xsn");
    For more information check NewFromSolutionWithData method in SDK.

    Hope this helps you!
    Shilpa
    INFOPATHDEV India
  • 01-22-2007 11:50 PM In reply to

    • hehe
    • Top 500 Contributor
    • Joined on 08-23-2006
    • Netherlands
    • Posts 32
    Thank You Shilpa,

    I will look into to that.

    Greetz
    Henny
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.