WorkbookCustomSaveResult Property |
Namespace: Aceoffix.ExcelReader
The following example shows how to use the CustomSaveResult property.
protected void Page_Load(object sender, EventArgs e) { Aceoffix.ExcelReader.Workbook wb = new Aceoffix.ExcelReader.Workbook(); Aceoffix.ExcelReader.Sheet sheet1 = wb.OpenSheet("sheet1"); string strCompanyName = sheet1.OpenCell("CompanyName").Value; //Save the data to database. wb.CustomSaveResult = "My custom result"; wb.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>