Click or drag to resize
WorkbookGetFormField Method
Gets the value of the Form field specified in the page with AceoffixCtrl.

Namespace: Aceoffix.ExcelReader
Assembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntax
public string GetFormField(
	string Name
)

Parameters

Name
Type: SystemString
The name of the Form field.

Return Value

Type: String
Returns the value of the Form field.
Remarks

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.

Note Note

The Form field can be Input Box, Drop-down Box, Radio, Check Box, TextArea, Hidden Field etc..

Examples

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();
}
See Also