WordDocumentGetFormField Method |
Namespace: Aceoffix.WordReader
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.
![]() |
---|
The Form field can be Input Box, Drop-down Box, Radio, Check Box, TextArea, Hidden Field etc.. |
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(); }