当前位置:网站首页>Use of Jasper soft studio report tool and solution of thorny problems
Use of Jasper soft studio report tool and solution of thorny problems
2022-06-28 08:55:00 【Talent】
jasper soft studio The use of reporting tools and the resolution of thorny problems !
It has been half a year since bricks were moved , It's been a long time since Mi sent a new article. Let's do it today .
1、 It's easy to download and install , In addition, the functions of each part of the panel are relatively simple, which is directly omitted here .
2、 Change the font ( Chinese may not be displayed )
window -->> preference

Be careful : Font words need to search Baidu , The next step is java How to configure in .
<?xml version="1.0" encoding="UTF-8"?>
<fontFamilies>
<!--</fontFamily>-->
<fontFamily name=" Chinese Songti ">
<normal>fonts/stsong.TTF</normal>
<bold>fonts/stsong.TTF</bold>
<italic>fonts/stsong.TTF</italic>
<boldItalic>fonts/stsong.TTF</boldItalic>
<pdfEncoding>Identity-H</pdfEncoding>
<pdfEmbedded>true</pdfEmbedded>
<exportFonts>
<export key="net.sf.jasperreports.html">' Chinese Songti ', Arial, Helvetica, sans-serif</export>
<export key="net.sf.jasperreports.xhtml">' Chinese Songti ', Arial, Helvetica, sans-serif</export>
</exportFonts>
</fontFamily>
<fontFamily name=" Microsoft YaHei ">
<normal>fonts/msyh.TTF</normal>
<bold>fonts/msyh.TTF</bold>
<italic>fonts/msyh.TTF</italic>
<boldItalic>fonts/msyh.TTF</boldItalic>
<pdfEncoding>Identity-H</pdfEncoding>
<pdfEmbedded>true</pdfEmbedded>
<exportFonts>
<export key="net.sf.jasperreports.html">' Microsoft YaHei ', Arial, Helvetica, sans-serif</export>
<export key="net.sf.jasperreports.xhtml">' Microsoft YaHei ', Arial, Helvetica, sans-serif</export>
</exportFonts>
</fontFamily>
</fontFamilies>
3、 Database as data source .



Click on add Add data sources 

ClassPathResource resource = new ClassPathResource("pdf_template/print_test.jasper");
InputStream inputStream = resource.getInputStream();
ServletOutputStream outputStream = response.getOutputStream();
JasperRunManager.runReportToPdfStream(inputStream,outputStream,title,new JRBeanCollectionDataSource(list));
4、java bean data source 

Then select the jar Bag can
5、 Time 
6、 picture 

Square box 3 The content in :
new ByteArrayInputStream(java.util.Base64.getDecoder().decode($F{
pic}.getBytes()))
These problems are basically encountered , It's still a little difficult to use at first ; Come on, everyone! !
边栏推荐
- [go ~ 0 to 1] the next day, June 25, switch statement, array declaration and traversal
- yaml json
- Tree
- Implement global double finger long press to return to the desktop
- 【力扣10天SQL入门】Day4 组合查询 & 指定选取
- Infinite penetration test
- Application of energy management system in iron and steel enterprises
- Common faults and solutions of Substation
- How to suppress SiC MOSFET crosstalk?
- DEJA_VU3D - Cesium功能集 之 051-地形开挖完美实现
猜你喜欢

罗氏线圈可以测量的大电流和频率范围

用Pytorch搭建第一个神经网络且进行优化

Application of current limiting protector in preventing electrical fire in shopping malls

Rman Backup Report Ora - 19809 Ora - 19804

Kali installation configuration

Common test method used by testers --- orthogonal method

STL - inverter

Kali Notes(1)

Lilda low code data large screen, leveling the threshold of data application development

SQL injection file read / write
随机推荐
Large current and frequency range that can be measured by Rogowski coil
Power data
罗氏线圈可以测量的大电流和频率范围
【大案例】学成在线网站
The 6th smart home Asia 2022 will be held in Shanghai in October
temple
How do individuals open accounts to speculate in stocks? Is online account opening safe?
Quickly understand JVM structure and working principle
Zhejiang energy online monitoring and management system
DEJA_ Vu3d - 052 of cesium feature set - Simulation of satellite orbit (high altitude) effect
Build the first neural network with pytoch and optimize it
与普通探头相比,差分探头有哪些优点
DEJA_VU3D - Cesium功能集 之 052-模拟卫星轨道(高空)效果
Maintenance and protection of common faults of asynchronous motor
【无标题】
为什么函数模板没有偏特化?
【无标题】
隐私计算FATE-----离线预测
Characteristics and prevention of electrical fire
Cloudcompare & PCL point cloud SVD decomposition