WordDocumentCustomSaveResult Property |
Namespace: Aceoffix.WordReader
The following example shows how to use the CustomSaveResult property.
protected void Page_Load(object sender, EventArgs e) { Aceoffix.WordReader.WordDocument wd = new Aceoffix.WordReader.WordDocument(); string strCompanyName = wd.OpenDataRegion("CompanyName").Value; string strProductName = wd.OpenDataRegion("ProductName").Value; //Save the data to the database. wd.CustomSaveResult = "My custom result"; wd.Close(); }
Then, custom saving result can be got from the CustomSaveResult property of AceoffixCtrl with JavaScript.
<script language="javascript" type="text/javascript"> function SaveDocument() { document.getElementById("AceoffixCtrl1").SaveDocument(); alert(document.getElementById("AceoffixCtrl1").CustomSaveResult);//You can determine the next code logic according to the value of CustomSaveResult. } </script>