2006 IR Open Dicussion Posted August 16, 2006 Share Posted August 16, 2006 By: Fish - fishandfly What is this exception meaning? 2002-11-07 21:34 I want to report with Chinese encoding , and I have set a default font in report.xml like this: <reportFont name="SongTi" isDefault="true" fontName="SongTi" size="12" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="false"/> The Compile is ok! It is also OK when I run report without any Chinese . But when I set a Chinese into parameters , the exception appeared: com.lowagie.text.DocumentException: UniGB-UCS2-H at com.lowagie.text.pdf.Type1Font.<init>(Unknown Source) at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source) at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source) at dori.jasper.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:815) at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:309) at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:263) at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:207) at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:135) at dori.jasper.engine.JasperRunManager.runReportToPdfFile(JasperRunManager.java:226) at com.huahang.rotor.TestMain2.testReport(TestMain2.java:151) at com.huahang.rotor.TestMain2.main(TestMain2.java:131) NESTED BY : dori.jasper.engine.JRException: PDF Document error : ImdetailReport at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:271) at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:207) at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:135) at dori.jasper.engine.JasperRunManager.runReportToPdfFile(JasperRunManager.java:226) at com.huahang.rotor.TestMain2.testReport(TestMain2.java:151) at com.huahang.rotor.TestMain2.main(TestMain2.java:131) in the 0.40 version , there are not problems with Chinese, but there is the way in Web , So I have to use the 0.43 version , but this problem is very terrible! How can I do ! Thank you ! By: Fish - fishandfly RE: What is this exception meaning? 2002-11-07 22:39 Sorry , this problem has been solved , it is my mistake! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now