Home Devices
New Blog Posts: Merging Reports - Part 1 and Part 2

export to pdf with chinese labels

edited May 2009 in Devices
I am using D2009 with a trial version of report builder 11.04.

I have 3 labels on the report which are chinese.
They preview ok (see attached gif)
but when exported to pdf using the built-in pdf feature, they appear
garbage.

I have tried setting the CHARSET property of each of the lables' Font
property to
GB2312_CHARSET (simplied chinese)
and BIG5_CHARSET (the traditional chinese) and
default charset (hoping it will be UNICODE since D2009 is unicode enabled).

All of the 3 settings failed.

I have attached the source code. Please have a look and let me know how I
can correctly export a chinese report to pdf.

Please don't tell me to embed the multiple megabytes Chinese fonts size with
will make the pdf file larger than their TIF format counterparty and defeats
the purpose of pdf file.

I am running on windows XP professional with chinese codepage turned so I
can view chinese on this machine.
Thanks a lot.

If I can make it work, I will upgrade my Report Builder 7 to 11.04.

Dennis

Comments

  • edited May 2009
    Hi Dennis,

    Please do not attach examples to the newsgroup messages. Send them to
    support@digital-metpahors.com.

    The built-in PDF device does not currently support Unicode text or font
    subsets. This is something that we are researching and would like to add to
    a later release. As a workaround, you can place your unicode text into a
    TppRichText object and set the PDFSettings.ExportRTFAsBitmap property to
    True (in code). This will ensure the Unicode text is exported correctly
    however the quality of the text will be reduced.

    I also believe the export utility Gnostice supports exporting Unicode text.
    (http://www.gnostice.com).

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2009
    thanks. will try gnostice.
This discussion has been closed.