hminocha
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by hminocha
-
-
Hi,
Had the same problem that it could not load japanese font. Please make sure to include iTextAsian.jar in your classpath. Then follow the example given in the samples/font.
Basically:
Assuming ou have used SansSerif non-bold non-italic font in your jrxml:
Code:
//One entry in the map for all fonts used (note: bold or italic will make it one more key)
FontKey key = new FontKey("SansSerif", false, false);
PdfFont("HeiseiKakuGo-W5", "UniJIS-UCS2-H", true);
fontMap.put(key, font);
exporter.setParameter(JRExporterParameter.FONT_MAP, fontMap);
exporter.exportReport();This should work. For chinese you could try using STSong-Light as pdffont, with encoding as UniGB-UCS2-H
Backward Compatibilty Problem - JRTextAttribute
in Products
Posted
Hi,
I serialized a jasper print object sometime back (using jasper 1.3.x).
Now using 2.0.4. jasper, I want to be able to export it. Exporting to CSV throws the error
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.util.JRTextAttribute; local class incompatible: stream classdesc serialVersionUID = 1985145853444784481, local class serialVersionUID = 10200
Reasons seems to be that now JRTextAttribute has a serialVersionUID, previously(1.3) it did not have any serialVersionUID.
thanks,
hemant