Overview
When using inserted M-Files properties in a Word document with formatted field codes, the formatting is different in converted PDF file. This applies to PDF conversions done through the workflow state action "Convert to PDF format". As an example, the following formatting is used for a date property that should display the date in localized format: "20 February 2023"
"{DOCPROPERTY "MFiles_PGE123ABC.." \@"d MMMM yyyy"}"
Solution
The used formatting can be changed in following places:
1. Regional settings of the server
2. "Formatting locale" setting in Advanced Vault settings
3 "LocaleName" setting in Custom Vault Data
As default the date and time format settings of the M-Files server computer's system account determines the used formatting. How do format the date on the M-Files server computer
In cases where the server formatting settings can't be changed, like in cloud environments, the "Formatting Locale" setting can be used to overwrite the server formatting. Specifying Vault-Specific Locale Settings for Server-Side PDF Conversions
If needed, also the "LocaleName" setting can be used through Custom Vault Data to overwrite the previous two settings.
Namespace registry:
- Storage Type= MFConfigurationValue
- Namespace= M-Files.Core.Server.Settings
Named Values:
- Name = LocaleName
- Value = <language culture name>, e.g. fi-FI, en-US, sv-SE
