SaveAs method - InfoPath Dev
in

InfoPath Dev

SaveAs method

Last post 02-03-2006 05:35 AM by plsames. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-02-2006 04:31 PM

    SaveAs method

    I am new to the forum, so would appreciate any help I can get. I am trying to call the SaveAs method in the onSubmitRequest function in jscript. I am passing it a field value and path as the file path/name. I keep getting the error saying that the file has no name. I can display the file path/name in the Xdocument, but I doesn't seem to work in the SaveAs method. I want to be able to save the form on a local drive using a specific filename.

    Any ideas?
  • 02-02-2006 07:47 PM In reply to

    • erwin
    • Not Ranked
    • Joined on 01-03-2006
    • Indonesia
    • Posts 21
    Hi,

    XDocument.SaveAs("c:\\\form1.xml");

    SaveAs only work if it Trusted form, so you should make form as a trusted form.

    erwin.
  • 02-03-2006 05:35 AM In reply to

    Thanks for the reply. I have tried that code, and that's when I get the message that the form doesn't have a file name. The form is fully trusted and deployed using vs msi.

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