Dear Support Team,
I am experiencing an issue where the Japanese era name "Reiwa" is not displayed correctly when converting an Excel template to a PDF using Spire.XLS.
-Issue
When applying a date format with the Japanese era in an Excel cell, the displayed value is incorrect after PDF conversion.
-Details
When using Excel’s "Cell Format Settings" to display the era name (2019/04/30 → 平成31年4月30日 (Heisei 31, April 30, 2019)):
It is displayed correctly in the PDF output.
When using the formula TEXT("2019/04/30","[$-411]ggge年m月d日") in an Excel cell:
In Excel, it correctly displays "平成31年4月30日 (Heisei 31, April 30, 2019)".
However, after PDF conversion, it incorrectly displays "令和元年4月30日 (Reiwa 1, April 30, 2019)".
Since the "Reiwa" era officially started on May 1, 2019, the correct era for April 30, 2019, should be "Heisei 31". However, the PDF output incorrectly displays "Reiwa 1".
-Environment
OS: Windows 10
.NETCore: 8.0.12
Spire.XLS: 14.12.2
Excel:MS365
-Attachments
Excel template
PDF output
Source code
Could you please investigate this issue and let me know if a fix is possible?
If you need any additional information, please let me know.
Best regards,