Saving form to disc from code - InfoPath Dev
in

InfoPath Dev

Saving form to disc from code

Last post 03-07-2006 08:03 AM by mar. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-07-2006 05:21 AM

    • mar
    • Top 500 Contributor
    • Joined on 09-04-2005
    • Poland
    • Posts 37

    Saving form to disc from code

    1)Someone makes a new infopath file and puts it into sharepoint.
    2)Now, i need to open it, change something and click a button, which will send this version to sharepoint AND will save it to harddrive.
    I'm wondering how to save a file from inside this file?
  • 03-07-2006 06:58 AM In reply to

    Re: Saving form to disc from code

    You should be able to use the SaveAs() function inside a custom submit procedure, but saving to the local hard drive will require full trust.
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 03-07-2006 08:03 AM In reply to

    • mar
    • Top 500 Contributor
    • Joined on 09-04-2005
    • Poland
    • Posts 37

    Re: Saving form to disc from code

    I had a problem with XmlDocument = XDocument. But i have done it like this:
    XmlDocument o=new XmlDocument();
    o.LoadXml(thisXDocument.DOM.xml);
    o.Save(@"c:\xml\testXML.xml");
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.