WorkbookGetFormField Method |
Namespace: Aceoffix.ExcelReader
When AceoffixCtrl is saving document, you can call this method to get the values of the Form fields specified in the page with AceoffixCtrl.
To capture the value of the Form field, the Form field must contain a name attribute.
![]() |
---|
The Form field can be Input Box, Drop-down Box, Radio, Check Box, TextArea, Hidden Field etc.. |
The following example shows how to use GetFormField method to get the value of the Form field posted from the page with AceoffixCtrl.
protected void Page_Load(object sender, EventArgs e) { Aceoffix.ExcelReader.Workbook wb = new Aceoffix.ExcelReader.Workbook(); string strSubject = wb.GetFormField("EditSubject"); //Save the obtained data to database. Aceoffix.ExcelReader.Sheet sheet1 = wb.OpenSheet("sheet1"); string strCompanyName = sheet1.OpenCell("CompanyName").Value; wb.Close(); }