Dear Jack,
You can store the XmlDataString of empty form in a global string variable using the code
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
FormControl.XsnLocation = Server.MapPath("Test.xsn");
emptyFormString = FormControl.XmlDataString;
}
}
and then you can assign this string variable to XmlDataString property where you want to clear the form as you can see in the below code.
FormControl.XmlDataString = emptyFormString;
Please feel free to contact us in case you have further comments or questions.
Best Regards,
Muhammad Ijaz
Support Developer,
Aspose Sialkot Team
Contact UsAspose - The .NET and Java Component Publisher