Springboot+JasperReport report printing

General idea:

1. Download and install Jaspersoft studio, and design the template

Refer to:
Use JasperReport report tool to make Java project report printing function (1)

Two, Springboot integrates JasperReport

Refer to:
Springboot integrates JasperReport report and report printing function
SpringBoot (16) _springboot integrates JasperReport 6.6.0

In the spring boot project, write the interface report java.awt.HeadlessException: null solution
(among them, the third method can no longer report an error in the jar)

Prompt that the file cannot be found, pay attention to whether the jasperreports jar in springboot is consistent with the version of Jaspersoft studio installed, refer to: https://blog.csdn.net/hejinwei_1987/article/details/23867643

Net.sf.jasperreports.engine.JRException: Invalid page index range: 0--1 of 0, refer to https://bbs.csdn.net/topics/190039409 to Insert picture description here
integrate the QR code, the barcode
Jaspersoft and springboot are combined to generate one One-dimensional code, two-dimensional code (one-dimensional code personal test also failed, refer to the two-dimensional code method is successful)
ireport generates one-dimensional code and two-dimensional code small notes

other

https://blog.csdn.net/exodus3/article/details/100360169
https://www.cnblogs.com/hegeainiyo/p/13050722.html
https://www.imooc.com/article/273858?block_id= tuijian_wz
https://www.cnblogs.com/Monroyhahaha/p/13560009.html
https://blog.csdn.net/qq_45413864/article/details/104139641
————
JasperReport in Java specifies the printer to print the specified content
https:/ /blog.csdn.net/dinghongyu520/article/details/104596516

JasperReport default printer printing/specified printer printing
https://blog.csdn.net/iteye_194/article/details/81849974?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.baidujs&dist_request_id=09697e95-7234-44e4- b323-f081faac65ee&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.baidujs

JasperReportUtil tool class
https://blog.csdn.net/lx_manito/article/details/78809898

java print QR code
https://blog.csdn.net/qq_42997029/article/details/102695763

https://www.cnblogs.com/suding1188/archive/2012/03/27/2418947.html

Java printer series/iReport template production

Guess you like

Origin blog.csdn.net/s_156/article/details/114119974