/** * Enforces fields update on document open (in Word). * In the settings.xml file <br> * sets the updateSettings value to true (w:updateSettings w:val="true") * <p> * NOTICES: * <ul> * <li>Causing Word to ask on open: "This document contains fields that may refer to other files. Do you want to update the fields in this document?" * (if "Update automatic links at open" is enabled)</li> * <li>Flag is removed after saving with changes in Word </li> * </ul> */ public void setUpdateFields() { CTOnOff onOff = CTOnOff.Factory.newInstance(); onOff.setVal(STOnOff.TRUE); ctSettings.setUpdateFields(onOff); }
/** * Enforces fields update on document open (in Word). * In the settings.xml file <br> * sets the updateSettings value to true (w:updateSettings w:val="true") * <p> * NOTICES: * <ul> * <li>Causing Word to ask on open: "This document contains fields that may refer to other files. Do you want to update the fields in this document?" * (if "Update automatic links at open" is enabled)</li> * <li>Flag is removed after saving with changes in Word </li> * </ul> */ public void setUpdateFields() { CTOnOff onOff = CTOnOff.Factory.newInstance(); onOff.setVal(STOnOff.TRUE); ctSettings.setUpdateFields(onOff); }
/** * Enforces fields update on document open (in Word). * In the settings.xml file <br/> * sets the updateSettings value to true (w:updateSettings w:val="true") * * NOTICES: * <ul> * <li>Causing Word to ask on open: "This document contains fields that may refer to other files. Do you want to update the fields in this document?" * (if "Update automatic links at open" is enabled)</li> * <li>Flag is removed after saving with changes in Word </li> * </ul> */ public void setUpdateFields() { CTOnOff onOff = CTOnOff.Factory.newInstance(); onOff.setVal(STOnOff.TRUE); ctSettings.setUpdateFields(onOff); }