how do I cause "Submit" to save a form to file location of my choi

  • Thread starter vegan gerry, chief software architect
  • Start date
V

vegan gerry, chief software architect

public void FormEvents_Submit(object sender, SubmitEventArgs e)
{
// If the submit operation is successful, set
// e.CancelableArgs.Cancel = false;
// Write your code here.
throw new Exception("Submit failed");
}

Above is the default submit event. I've added the "throw new Exception" for
now.

I would like to trap the .xml file that presumably would get written if it
were error free and save it with a file name of my choice to a location of my
choice. I do not want to use the default name "Form1.xml".

Also, I have a readonly text field called "lessonStatus" with a default
value of "not completed".

Before I save the .xml file, I would like to change the status to "completed".

The second thing that I would like to do is to save the .xml file with a
file status of read only. The idea is that the end user can reopen the file
and view it but can not make any further changes.

Please advise.

Thank you.

Regards,
Gerry (Lowry)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top