US and Worldwide: +1 (866) 660-7555
+ Reply to Thread
Results 1 to 3 of 3

Thread: chinese in the chart export to the pdf

  1. #1
    Join Date
    Jun 2009
    Posts
    111

    Default chinese in the chart export to the pdf

    hello every one ,
    I have use the pentaho report designer to show my report , it works very well .But there is some problem whem export to the pdf file .
    I use the report to show chinese . In order to show the chinese , I have to set the font and encoding for each field , so now ,the report can show chinese correctly.
    But there is still a problem that the chart in the report can't show chinese.Not only the title ,but also the data, it will all turn out to be null if they are chinese characters.
    I use the pentaho report designer 3.0.0,I use the drawable field in the report deisgner , But i can't find the property of font and encoding in the drawable field like textfield .
    And in my code , I use JFreeChart to be added to the report to set the drawable field ,I don't know how to set the font or encoding in the code to make the chinese to be shown.I have try some ways ,but it turn out to be failure.
    In order to show my problem more clearly ,I will uploading my coding for you see . There are four files .The first and the second are the java code, the third is the xml file generate by the report deisgner , the fourth is the excel file export by the report ,the fifth is the pdf file export by the report .
    I am really hope if there is some one who can help me .Wating for the answer.

  2. #2
    Join Date
    Jun 2009
    Posts
    111

    Default

    this is all of my files ,i think there is must be some method to deal with it .
    Attached Files

  3. #3
    Join Date
    Jun 2009
    Posts
    111

    Default

    I have set the font and encoding for the drawable field in the style expression .But it turn out to be useless.is there some one help me

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts