Change Save As Filename from VSTA - InfoPath Dev
in

InfoPath Dev

Change Save As Filename from VSTA

Last post 10-02-2008 12:18 AM by Anuma. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-30-2008 07:56 AM

    Change Save As Filename from VSTA

    Hi,

    I'm new to infopath forms, so, i have one question (maybe silly, but for a beginner like me ... ) .

     I have a form designed and published to Sharepoint Forms. I managed how to pass a parameter and auto fill some of the fields. My last issue is how to change the default filename for the XML file?

    My research always hits the

    XDocument.UI.SetSaveAsDialogFileName("Status Report.xml");

    function, but as i understand this function is not available for "web enabled" forms, and i do not have access to this XDocument variable.

    Also it is a solution for me to disable the default save as/ save buttons and to create a custom one, which will save the xml on the server, so I can display the data later.
    But in this case what will be the code to save the currently entered data?

     

  • 10-02-2008 12:18 AM In reply to

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

    Re: Change Save As Filename from VSTA

    HI,Can you use following function: this.SetSaveAsDialogFilename("Status Report.xml");instead of
    XDocument.UI.SetSaveAsDialogFileName("Status Report.xml");
    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.