Issue printing Japanese date characters to PDF
Hi,
I'm using Delphi 2007 with RB version 15.03 build 87. I have a very simple
project that just prints a header with the current date and time (using the
TFormatSettings version of FormatDateTime e.g.....
GetLocaleFormatSettings(LOCALE_SYSTEM_DEFAULT, l_FormatSettings);
MyppLabel.Caption := 'Date: ' + FormatDateTime(LongDateFormat, now,
l_FormatSettings) + ' - Time: ' + FormatDateTime(LongTimeFormat, now,
l_FormatSettings);
I have my windows configured so that the region settings point to a Japanese
System Locale. This reports previews to the screen fine and shows the
Japanese characters for day/month in the date, but when I create a PDF they
are not displayed correctly?
Any ideas please
TIA
Willie
I'm using Delphi 2007 with RB version 15.03 build 87. I have a very simple
project that just prints a header with the current date and time (using the
TFormatSettings version of FormatDateTime e.g.....
GetLocaleFormatSettings(LOCALE_SYSTEM_DEFAULT, l_FormatSettings);
MyppLabel.Caption := 'Date: ' + FormatDateTime(LongDateFormat, now,
l_FormatSettings) + ' - Time: ' + FormatDateTime(LongTimeFormat, now,
l_FormatSettings);
I have my windows configured so that the region settings point to a Japanese
System Locale. This reports previews to the screen fine and shows the
Japanese characters for day/month in the date, but when I create a PDF they
are not displayed correctly?
Any ideas please
TIA
Willie
This discussion has been closed.
Comments
ReportBuilder does not support any Japanese ANSI code pages for PDF. In
order to properly display Japanese text inside a PDF, you will need to
use the Unicode encoding feature of the PDF device which requires a
Unicode enabled version of Delphi (2009 or later).
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
that would work with ReportBuilder? , I found one from Waler but it stopped
at RB11.
regards
Waler ExtraDevices did not support Japanese ANSI code pages. You might
research if Gnostice eDocEngine supports it.
http://gnostice.com/
Another option would be to print to a PDF driver such as the one that is
included with Acrobat. There are a number of free ones available on the
web.
The best option of course is to upgrade your version of Delphi so you
can continue using the built-in and fully supported PDF device included
with ReportBuilder.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
WPCubed works for my Japanese dates.
Thanks Nico