Extracting merge field and containing region names

Hi,
I’m using the code example here: https://docs.aspose.com/words/java/working-with-fields/ to extract the names of all merge fields in a document calling mergeField.getName instead of mergeField.setName

However, I also need to find the name of the containing region (from the tablestart: tableend: fields) if the merge field is in a table and it’s this that I’m stuck on.

Thanks for any help.

Hi

Thanks for your request. I think the code provide here should help you to achieve what you need:
https://forum.aspose.com/t/88515
Please let me know if you need more assistance, I will be glad to help you.
Best regards,