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

Namespace: Aceoffix.WordReader
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.

Note: 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

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.WordReader.WordDocument wd = new Aceoffix.WordReader.WordDocument();
    string strSubject = wd.GetFormField("EditSubject"); 
    //Save the obtained data to database
    string strCompanyName = wd.OpenDataRegion("CompanyName").Value;
    wd.Close();
}
See Also