Jump to content
We've recently updated our Privacy Statement, available here ×

hminocha

Members
  • Posts

    2
  • Joined

  • Last visited

hminocha's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. 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
  2. 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
×
×
  • Create New...