当前位置:网站首页>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! !
边栏推荐
- Common tools for interface testing --postman
- What are the advantages of a differential probe over a conventional probe
- SQL注入之文件读写
- yaml json
- Find the total number of 1 appearing in the integer 1-N and the number of 1 in the binary of the integer
- rman備份報ORA-19809 ORA-19804
- What is the bandwidth of the Tiktok server that can be used by hundreds of millions of people at the same time?
- WasmEdge 0.10.0 发布!全新的插件扩展机制、Socket API 增强、LLVM 14 支持
- Discussion on safety management of centralized maintenance construction site of substation under the mode of operation and maintenance
- 为什么函数模板没有偏特化?
猜你喜欢
![[untitled]](/img/bb/213f213c695795daecb81a4cf2adcd.jpg)
[untitled]
![[cloud native | kubernetes] in depth understanding of pod (VI)](/img/ae/f16f5c090251ab603b88ddadff7eb3.png)
[cloud native | kubernetes] in depth understanding of pod (VI)
![[.Net6] GRP server and client development cases, as well as the access efficiency duel between the minimum API service, GRP service and traditional webapi service](/img/19/296f124becb87461accf8b73b0a8bc.png)
[.Net6] GRP server and client development cases, as well as the access efficiency duel between the minimum API service, GRP service and traditional webapi service

如何抑制SiC MOSFET Crosstalk(串擾)?

How to solve the problem of high concurrency and seckill

Fire fighting work and measures in Higher Vocational Colleges

爱分析发布《2022爱分析 · IT运维厂商全景报告》 安超云强势入选!

Characteristics and prevention of electrical fire

MySQL8.0 忘记 root 密码

罗氏线圈工作原理
随机推荐
DEJA_VU3D - Cesium功能集 之 051-地形开挖完美实现
How do people over 40 allocate annuity insurance? Which product is more suitable?
RMAN backup message ora-19809 ora-19804
爱分析发布《2022爱分析 · IT运维厂商全景报告》 安超云强势入选!
Where is CentOS mysql5.5 configuration file
怎样在手机上开户?现在网上开户安全么?
Loggerfactory uses log4j Parameter introduction of properties
Webrtc advantages and module splitting
Copy & Deepcopy
Characteristics and prevention of electrical fire
【云原生 | Kubernetes篇】深入了解Pod(六)
[cloud native | kubernetes] in depth understanding of pod (VI)
What is the bandwidth of the Tiktok server that can be used by hundreds of millions of people at the same time?
Application of energy management system in iron and steel enterprises
为什么函数模板没有偏特化?
Why are function templates not partial specialization?
Not so Mobile
A - deep sea exploration
Love analysis released the 2022 love analysis · it operation and maintenance manufacturer panorama report, and an Chao cloud was strongly selected!
从知识到智慧:知识图谱还要走多远?