Just pop the following code into your VSTO project for the button click event.
FileDialog oDialog = new SaveFileDialog();
oDialog.DefaultExt = "xml";
oDialog.Filter = "InfoPath Form (*.xml)*.xml";
if(oDialog.ShowDialog() == DialogResult.OK)
{
string sFilename = oDialog.FileName;
this.SaveAs(sFilename);
}
Subscribe to:
Post Comments (Atom)
1 comment:
I will definitely try this code in my current project. The code posted above seems to me working but to make it sure I need to run it. Thanks for posting it.
infopath
Post a Comment