Hi,
I am using the following code to lock ref Type fields in the document:
for (com.aspose.words.Field field : document.getRange().getFields()) {
if (field.getType() == FieldType.FIELD_REF) {
field.is…...the following code to lock ref type fields in the document: for...FIELD_REF) { field.isLocked(true); } } document.updateFields();...