java.lang.Object
com.aspose.words.FieldUpdateCultureSource
public class FieldUpdateCultureSource
- extends java.lang.Object
Utility class containing constants.
Indicates what culture to use during field update.
Example:
Shows how to specify where the locale for date formatting during field update and mail merge is chosen from.
// Set the culture used during field update to the culture used by the field.
doc.getFieldOptions().setFieldUpdateCultureSource(FieldUpdateCultureSource.FIELD_CODE);
doc.getMailMerge().execute(new String[] { "Date2" }, new Object[] { new SimpleDateFormat("yyyy/MM/DD").parse("2011/01/01") });
Field Summary |
static final int | CURRENT_THREAD = 0 | |
The culture of the current execution thread is used to update fields.
|
static final int | FIELD_CODE = 1 | |
The culture specified in the field formatting properties via language setting is used.
|
CURRENT_THREAD = 0 | |
public static final int CURRENT_THREAD |
-
The culture of the current execution thread is used to update fields.
FIELD_CODE = 1 | |
public static final int FIELD_CODE |
-
The culture specified in the field formatting properties via language setting is used.
To be exact, Aspose.Words mimics MS Word by using the language set for the first character of the field code.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.