Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Common problems

Date formatting is shown differently after converting Word to PDF format

Last updated on 18 April 2024 · 2 min read

Admin
PDF Conversion

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

Still need help?

On this page