XMLForms.NewFromFormTemplate - InfoPath Dev
in

InfoPath Dev

XMLForms.NewFromFormTemplate

Last post 12-22-2008 06:56 AM by Anuma. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-22-2008 06:44 AM

    • SeemaS
    • Not Ranked
    • Joined on 12-22-2008
    • Posts 1

    XMLForms.NewFromFormTemplate

    Hi,

    I have written the code in infopath 2007 form (managed code) to open the new form on click of a button.

    XMLForm formObj = this.Application.XMLForms.NewFromFormTemplate(string formtemplatelocation)

    This code works fine when i preview the main form and click the button but fails when i open the form from site.

    Error:-

    InfoPath cannot create a new, blank form.
    InfoPath cannot open the form. To fix this problem, contact your system administrator.
    Form template:formtemplatelocation

    The following form template for the form cannot be found: file:

    Please let me know how and where do i need to publish my second form which i am trying to open on button click using above code.

    Thanks in advace.

    Seema

     

  • 12-22-2008 06:56 AM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: XMLForms.NewFromFormTemplate

    Hi,

    Are you able to open form which you given in the "formtemplatelocation" link from browser.

    If you are working on the browser enabled forms, then this code will not work.

    Anuma Chinthapalli /
    http://www.GGKTech.com
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.