chent01
-
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
Security Advisories
Downloads
Posts posted by chent01
-
-
Teodor:
My name is Tony Chen. I am new to this Forum. Thanks so much for sponsoring this Forum. We encountered an issue where PDF exporter result in trailing word truncation for textfield with attribute isPrintWhenDetailOverflows="true" markup="html".
You recommend a solution by setting JRPdfExporterParameter.FORCE_LINEBREAK_POLICY, Boolean.TRUE. After this change, the truncation issue is resolved. However, lots of textfields with isPrintWhenDetailOverflows="true" wrap incorrectly and break up words like Account(s) broken into Account & (s), 6:00 am into 6 & :00 am, and i.e. into i & .e.
If we do not set JRPdfExporterParameter.FORCE_LINEBREAK_POLICY, Boolean.TRUE, we have word truncation. If we set JRPdfExporterParameter.FORCE_LINEBREAK_POLICY, Boolean.TRUE, we have incorrect wrapping. How can we resolve this?
We are using JDK 1.4.2, JasperReport 3.0.
Your help is really appreciated!
Code: Map fontMap = new HashMap(); fontMap.put(new FontKey("Times New Roman", false, false), new PdfFont("times.ttf", "Cp1252", true)); fontMap.put(new FontKey("Times New Roman", true, false), new PdfFont("timesbd.ttf", "Cp1252", true)); fontMap.put(new FontKey("Times New Roman", false, true), new PdfFont("timesi.ttf", "Cp1252", true)); fontMap.put(new FontKey("Times New Roman", true, true), new PdfFont("timesbi.ttf", "Cp1252", true));JRPdfExporter exporter = new JRPdfExporter();exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, pdffilename);exporter.setParameter(JRExporterParameter.FONT_MAP, fontMap);//force AWT&PDF using the same wrapp//exporter.setParameter(JRPdfExporterParameter.FORCE_LINEBREAK_POLICY, Boolean.TRUE);
jrprint files from Jasperreport 3.0.0 and Jasperreport 3.1.0
in Products
Posted
Hi:
I am new to this forum. I really appreciate if someone can help me on my issue. We have a few servers running different jasperreport verson. Some run Jasperreport 3.0.0 and the rest run Jasperreport 3.1.0. Both 3.1.0 and 3.0.0 JA generate jrprint files at a storge place. Later on, a process uses Jasperreport 3.0.0 JRLoader and JRPdfExporter to read these jrprint files from both 3.0.0 and 3.1.0 versions and export to a pdf file. My question is
Can 3.0.0 version JRLoader and JRPdfExporter read and handle jrprint file generated by Jasperrepor 3.1.0 without pontential issues. Normally a higher version can handle lower version. For my environment, it is other way around for some specific reason.
I did some test run. It seems working. But I want to make sure.
Thanks
Tony Chen