เตรียม JasperPrint สำหรับการส่งออก

Contents
[ ]

รหัสส่วนนี้แสดงให้เห็นถึงวิธีการสร้างวัตถุ JasperPrint เพื่อเตรียมรายงานสำหรับการส่งออกภาพต่อไป

Java

JasperReport jasperReport = JasperCompileManager.compileReport("shapesReport.jrxml");
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, null, new JREmptyDataSource());