No FormFIelds

i have a document with two form fields (i will upload it)
But:FormFieldCollection ffc = wd.Range.FormFields;
return zero form fields.

How to make it work? (19.6 KB)


Your document does not contain any form fields; instead, it contains two “Content Controls” that you can identify by using the following code:

Document doc = new Document("E:\\DocxWithFormFields\\DocxWithFormFields.docx");

int countSDT = doc.GetChildNodes(NodeType.StructuredDocumentTag, true).Count;
Console.WriteLine("Content Controls Count = {0}", countSDT);

ah, i see.