Click or drag to resize
WordDocumentCustomSaveResult Property
Sets the custom saving result defined by developer.

Namespace: Aceoffix.WordReader
Assembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntax
public string CustomSaveResult { set; }

Property Value

Type: String
Examples

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.

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>
See Also