Problem Saving File - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Problem Saving File

Last post 12-19-2008 03:50 AM by Shiva. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-18-2008 08:42 AM

    Problem Saving File

    I am trying to implement a customize Save so that I provide my users with the ability to save a Performance Review form to their own computer (Submitting sends the form to SharePoint and notifies their manager that the form is ready for review). I have the following function but it is not working (no file gets saved to the specified folder. Any ideas on what I am doing wrong? any ideas on how to specify the MyDocuments location of the user would also be appreciated.

    function SaveToCDrive::OnClick(eventObj)

    {

    var myFileName = XDocument.DOM.selectSingleNode("/my:PerformanceReview/my:EmployeeInfo/my:EmployeeNumber").text + ".xml";

    //debugger;

    XDocument.UI.SetSaveAsDialogLocation("C:\\Temp");

    XDocument.UI.SetSaveAsDialogFileName(myFileName);

     }

    TIA

    Dean

    Dean
    Charlotte, NC
    Filed under:
  • 12-18-2008 09:49 PM In reply to

    Madhuri
    http://www.ggktech.com
  • 12-19-2008 03:50 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Hello,

    Can you give more detail on what is your error message? Can you use try and catch block in your code then it will give the exception or error message in catch block.

    You can follow the steps in above link given by Madhuri.

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