Hi,
I used to have Aspose.Words 14.3.0 and after running the code below I would get FieldType.FIELD_PAGE (33) for some fields. Now, when I am using Aspose.Words 15.11.0 I would get FieldType.NONE (0) for the same fields in the attached document. My question is, am I going to get FieldType.NONE for all the fields that used to be FieldType.FIELD_PAGE? Are there any other changes in field types like this one?
Thanks,
Zeljko
Code:
public void getAsposeFields() throws Exception {
Document doc = new Document(“Test.docx”);
@SuppressWarnings(“rawtypes”)
NodeCollection fieldStarts = doc.getChildNodes(NodeType.FIELD_START, true);
for (int i = 0; i < fieldStarts.getCount(); i++) {
FieldStart start = (FieldStart) fieldStarts.get(i);
System.out.println("FieldType: " + start.getFieldType());
System.out.println(start.getField().getFieldCode());
}