I have used the following code to update the fields.
Document doc = new Document(@"C:\DEMO.docx");
Please see the attached Demo.docx file.
That file contains one Dropdown field. When the dropdown changed all related reference Fields should be updated.
My requirement is
I have changed the dropdown value and saved the file and ran above code to update ref fields but it is not happening.
for example :
Select "Red" in dropdown
Save the file
run the above code
Refrence fields should be updated with "Red"
and "You selected Red color"