Error Calling NewFromSolution() - InfoPath Dev
in

InfoPath Dev

Error Calling NewFromSolution()

Last post 02-21-2006 08:25 AM by sjc724. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-21-2006 06:46 AM

    Error Calling NewFromSolution()

    I am trying to open a completed form using the following code:

    thisApplication.XDocuments.NewFromSolution(@"C:\TestForm1.xml");

    Both the calling form and the form being called are fully trusted and digitally signed. I am not in preview mode and I have verified that my path is correct but I keep getting the following error:

    InfoPath cannot create a new, blank form.
    InfoPath cannot open the form. To fix this problem, contact your system administrator.
    Form template: C:\TestForm1.xml
    The file cannot be accessed.

    Any suggestions? Thanks.
  • 02-21-2006 08:14 AM In reply to

    Re: Error Calling NewFromSolution()

    Form templates are .xsn files, filled-out forms are .xml. I'm pretty sure you will want to pass that filepath to

    thisApplication.XDocuments.Open( "C:\TestForm1.xml" );

    I hope this works!

    ---------------
    Matt Faus
    InfoPath Dev Texas
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 02-21-2006 08:25 AM In reply to

    Re: Error Calling NewFromSolution()

    Works like a charm, thank you very much!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.