Invalid Code Page

i-like-excel

New member
My client got an error when running an app (compiled to .exe via XLS Padlock 2025.1):

Invalid code page

Button: [OK]

He got Office 2019. I tested on 2016 and 2024 and it runs smoothly on my machine.

What is the problem? How can I solve it?
 
The "Invalid code page" error is related to your client's Windows regional/locale settings, not to the Office version itself. This explains why it works on your machines but fails on theirs.

The internal spreadsheet engine of XLS Padlock expects certain regional settings (particularly the code page tied to the system locale), and if the end user's Windows is configured with a different locale or code page than the one used during compilation, the app can throw this error.

Here's what to ask/suggest to your client:
  1. Check the Windows system locale on the client's machine: Settings → Time & Language → Language & Region → Administrative language settings → "Change system locale." It may be set to a non-standard or uncommon locale that uses a code page not supported by the spreadsheet engine.
  2. Check the "Beta: Use Unicode UTF-8 for worldwide language support" checkbox in that same dialog — if it's checked, ask them to uncheck it (or vice versa), as this is a very common cause of code page-related errors in many applications.
  3. Verify decimal/thousands separators: mismatched number formatting settings (decimal separator as comma vs. period) can cause issues. Have the client set the decimal separator to a period (.) as a test.
  4. If none of the above works, ask them to repair their Office 2019 installation (via Settings → Apps → Microsoft Office → Modify → Online Repair), as a corrupted install over a previous Office version can also cause such errors.
 
Back
Top