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

Namespace: Aceoffix
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.FileRequest freq = new Aceoffix.FileRequest();  
    freq.SaveToFile(Server.MapPath("doc/") + freq.FileName);
    freq.CustomSaveResult = "My custom result.";
    freq.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