เตรียม JasperPrint สำหรับการส่งออก
Contents
[
Hide
]ไลบรารี JasperReports มีคลาสชื่อ JasperFillManager สำหรับเตรียม JasperPrint สำหรับการส่งออก
รหัสส่วนนี้แสดงให้เห็นถึงวิธีการสร้างวัตถุ JasperPrint เพื่อเตรียมรายงานสำหรับการส่งออกภาพต่อไป
Java
JasperReport jasperReport = JasperCompileManager.compileReport("shapesReport.jrxml");
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, null, new JREmptyDataSource());