2011-12-27 35 views
0

我是JasperReports的新手。我想知道是否可以在iReport中以粗體顯示中文和英文字符的組合。中文和英文組合iReport

在這裏,我要送我重量確實到目前爲止,

<textFieldExpression class="java.lang.String"> 
    <![CDATA["This is to certify that <style pdfFontName='/rpt/ArialB.ttf' isBold='true'>" 
    +URLDecoder.decode($V{varCompName}) 
    +" </style>is incorporated under the Labuan Companies Act 1990 on and from the <style pdfFontName='/rpt/ArialB.ttf' isBold='true'>" 
    +$V{varDayCrtDt}+"</style> day of <style pdfFontName='/rpt/ArialB.ttf' isBold='true'>" 
    +$V{varMonthCrtDt} 
    +"</style>, in the year of <style pdfFontName='/rpt/ArialB.ttf' isBold='true'>" 
    +$V{varYearCrtDt} 
    +"</style> and that the company is " 
    +$V{varlimitedby}]]> 
</textFieldExpression> 

如果我刪除,爲的companyName風格標籤的展示中國和英文字符,但如果我保持風格的標籤印刷只用粗體英文字符的不打印中文字符。

請幫我解決這個問題。

感謝 兔子

+0

你用什麼出口國(PDF,DOC,文檔,XLS)?您應該使用支持亞洲語言的字體。您可以閱讀[字體擴展](http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/sample.reference/fonts/index.html)。 – 2011-12-27 12:40:52

+0

亞歷嗨,感謝您使用出口國的pdf.I'm不理解字體信息,您給我解釋一下你的reply.I'm briefly.So到目前爲止,我已經使用ArialB.ttf字體ü可以參考我的字體它會支持。謝謝兔子。 – user1117064 2011-12-28 02:05:06

回答

0

它是不可能在同一文本字段由JasperReports的導出的PDF混合多種字體。爲增強here投票。

你投的提高後,那麼你就需要找到一個涵蓋你所需要的中國和英文字符的字體。