0

How i can add long text in footer of dynamic jasper report in pdf?

Actually i am developing one report with chinese characters and i need to add content in footer but when i add it using AutoText it just print empty space. so looking for solution how i can add it

drb.addAutoText("<unicode of chinese chars>",
            AutoText.POSITION_FOOTER, AutoText.ALIGMENT_LEFT,800,atStyle);

If same code is used for Header it works and prints chinese chars by just replacing AutoText.POSITION_HEADER

I am using DynamicJasper because JasperReports is not able to print chinese chars.

Alex K
  • 22,315
  • 19
  • 108
  • 236
Jitendra Kumawat
  • 133
  • 1
  • 2
  • 12

1 Answers1

0

Jasper can print Chinese characters. Just choose Simsun or Sans serif fonts. You can put footer or header or even last page footer. Then place your text field on the footer band and there you go.sample template with header, footer and displays Chinese characters.

name me
  • 378
  • 1
  • 2
  • 17
  • If you run this with pdf output it will print blank , if it open pdf with ireport inbuilt pdf viewer than it prints chinese also when you use this jrxml with some application and you pass chinese chars it will print blank. – Jitendra Kumawat Mar 27 '15 at 18:57
  • im sorry just trying to help,have you tried using "identity-h"? in the property? for reference.. [link](http://community.jaspersoft.com/questions/539404/displaying-chinese-characters-pdf) – name me Mar 30 '15 at 02:33
  • It's ok, if you check in ireport it shows it deprecated so still we add it than report does not print anything for Chinese chars. – Jitendra Kumawat Mar 31 '15 at 11:16
  • the link you shared was for iReport 3.7.1 and i am working on ireport 5.5 – Jitendra Kumawat Mar 31 '15 at 11:18