Hi Hafeez,
Thank you very much for your quick and prompt reply.
Here is my code. Our document will be protected and will only allow to fill form fields.
Please let me know if the below code will always get all the form fields on the word document from multiple pages. Please let me know if there is any page limit for word document if I use below code. A sample document is attached.
Document doc1 = new Document("c:\temp\Sample_1.docx");
NodeList formFields = doc1.SelectNodes("//FormField");
// Traverse the list
foreach (Aspose.Words.Fields.FormField ffield in formFields)
{
switch (ffield.Type) // ffield.Type.ToString()
{
case Aspose.Words.Fields.FieldType.FieldFormCheckBox: //"FieldFormCheckBox":
// Do something
break;
case Aspose.Words.Fields.FieldType.FieldFormTextInput: // "FieldFormTextBox":
// Do something
break;
case Aspose.Words.Fields.FieldType.FieldFormDropDown: //"FieldFormDropDown":
// Do something
break;
}
}