After two days, the problem was finally solved. The PDF file generated by ireport does not display Chinese characters. I checked it online yesterday and said it was a pdf reader problem, I have reinstalled two versions, but I still cannot. I saw another post this afternoon and finally solved the problem.
It turned out to be a font setting problem. I changed these two attributes.
1. Set the PDF Font to stsong-light.2. the PDF encoding should be set t
Tips for using ireport
Connect to database
Switch the browser
Make PDF support Chinese
Http://p.blog.csdn.net/images/p_blog_csdn_net/fengda2870/EntryImages/20081009/c.PNG
Connect to database
1.Select connection/Data sources
2.Click "new ".
3.Select "database JDBC connection" and click "next>"
4.Enter related data and click test.
5. Open the report to connect t
1. First download the required tools and racks. I will not talk about it here.
2. Here we will only introduce several difficulties.
1) after creating the jrxml file with ireport, find the corresponding Jasper file in the installation directory of ireport and put it in a directory of the project. (Since it is a waste of time for the program to compile jrxml every time, it is not easy to change the template.
During the design of ireport, I embedded a website logo image and a bar code. when the result was debugged, the image could not be displayed and I checked the online information.
Yes
Request. getsession (). setattribute (Imageservlet. default_jasper_print_session_attribute,Jasperprint );
You need to put jasperprint into the session so that the port Image Display Server can access the jasperprint object and display the corresponding image.
To display
The previous text has a preliminary introduction of some basic use of ireport, the following began to detail how to use ireport, which has a lot of strange pits, such as Chinese fonts do not display, print out the font only the song body,
Here's an example of how to write a diagram:
1. On the right component, drag the static text component to the edit area, static text is write fixed, not live data, the p
The ireport report works fine on your local Windows environment, and once you deploy to a Linux environment, the following issues occur:1, open the report, the background directly reported Net.sf.jasperreports.engine.util.JRFontNotFoundException:Font ' imitation ' is not a available to the JVM. See the Javadoc for more details ... Error.This issue was previously thought to be caused by the Linux environment not having the appropriate fonts installed,
有些时候$F{propertyName},$V{variableName}内容过长,导致detail band表格里面的内容显示不完整。解决办法: **设置自动换行。**操作:点击该TextField查看属性,在属性中勾选Can. Since the tables shown in ireport are pieced together, setting a newline separately may cause the list to be misaligned (the columns are highly inconsistent), we just need to stretch the properties of all cells in that row type= "relative to band height".:Copyright NOTICE: This article for Bo Master original article, without Bo Master pe
(jrpdfexporter.java:816) at Net.sf.jasperreports.engine.export.JRPdfExporter.exportReport (jrpdfexporter.java:519) at Net.sf.jasperreports.engine.JasperExportManager.exportToPdfFile (jasperexportmanager.java:157) at Net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile (jasperexportmanager.java:505) at Com.gs.ireport.service.ReportService.main (reportservice.java:64) at SUN.REFLECT.NATIVEMETHODACCESSORIMPL.INVOKE0 (Native Method) at Sun.reflect.NativeMethodAccessorImpl.invoke (n
. engine. fill. JRVerticalFiller. fillReport (JRVerticalFiller. java: 113)
At net. sf. jasperreports. engine. fill. JRBaseFiller. fill (JRBaseFiller. java: 879)
At net. sf. jasperreports. engine. fill. JRBaseFiller. fill (JRBaseFiller. java: 782)
At net. sf. jasperreports. engine. fill. JRFiller. fillReport (JRFiller. java: 63)
At net. sf. jasperreports. engine. JasperFillManager. fillReport (JasperFillManager. java: 402)
At net. sf. jasperreports. engine. JasperFillManager. fillReport (JasperFi
In the process of making a report, the child table is essential, and today we have studied several ways to make a sub-tableOne, connect database create child tabletake MySQL for example :1) iReport Create parent tableThis is to create a new table, but remember that the data source to choose MySQL, the other database data source is the same.2) Once created, let's create a child table, find anywhere in the palette that you dragged into the parent table,
1: Modify Mac OS system time2:mac OS system via proxy InternetVMware 12 Install Mac OS X 10.10 virtual machine Optimization TipsVirtual video card mishap, so it must be optimized to use, the principle of optimization is able to streamline the simplification, can close the effect on the off, do not duang, the following are some optimization settings:1. Remove Dash
Before I wrote a MAC address plus minus 1 conversion of the article, there are some less comprehensive, here I re-a blog to explain.The real address of the Mac should be: ADCF4D5FD3CF, this, not AD:CF:4D:5F:D3:CF, this is the artificial colon, in order to look convenient;How about the MAC address minus 1? In fact, since the M
Why do you want to bind IP? Can you specify the IP can not be on the network? The reason to bind IP is because he will change the IP. For example, I am the IP on this computer is 192.168.1.11 this IP has been done in the firewall above the setting can not be online, but if I know that there is an IP is 192.168.1.30 IP can surf the internet, then I will not change the 192.168.1.11 replaced by 192.168.1.30 can be online?So the binding IP is to prevent him from changing IP. Because the
Script Purpose: Find the Mac blacklistDate: August 20, 2015Contact e-mail: [Email protected]Q q Group: 1851 1570151CTO Blog Home: http://990487026.blog.51cto.comOpen source community, have you more exciting!Brief introduction:Traverse the MAC address inside the switch, compare with the company registered Mac legitimate MAC
In October 29, a very bad day, XP went on strike for a year and a half. Okay, this is not a problem. Just reinstall the system.
Restart the system and enter Mac OS X. Start boot camp and put it into the XP system disk. As a result, the system disk was rejected by my Mac when I heard the sound of a choppy sound from the optical drive.
I have also encountered Mac d
Apache Configuration
In Mac OS 10.10.1 comes with Apache software, we just need to start the corresponding service, the following command is the operation of Apache commonly used in several commands:
// 启动Apache服务sudo apachectl start// 重新启动Apache服务sudo apachectl restart// 关闭Apache服务sudo apachectl stop// 查看Apache的版本httpd -v
sudoI don't have to say more about the order. Start the Apache service first, then enter localhost in the browser. The appearance
Today when I use Tomcat configuration, I use a Mac that uses some commands to configure Tomcat.Here's the problem:I am particularly troublesome to start the Tomcat service every time, because I have to go to the file directory where Tomcat is located, or not to use ~/, but because I put Tomcat in a more "deep" folder, the command looks ugly and long.Problem Solutions:1. Use environment variables (methods for modifying. BASHRC)A. First look at what she
How does Mac preview work? There are many users think that the Mac comes with the preview function only has a simple picture browsing function, in fact, the "preview" is a powerful look at the map, revision, mapping software, but also a multi-functional PDF reading and editing tools, the next Pc6 Apple Small to everyone detailed introduction of MAC Preview functi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.