Hello, I'm building a simple report using ireport 3.7.0. I tried to set a pie chart using servlet in a pdf file. Also there is a simple tabular report part in detail tag. And the image in summary part. The report runs with the tabular part but blank shows in image part. But there is no error shown. The code is given below... EmployeeSevlet.java: public class EmployeeSevlet extends HttpServlet { Map<String, Object> params = new HashMap<String, Object>(); DBConnection dbConnection = new DBConnection(); private JasperDesign jasperDesign; protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); EmployeeReport employeeReport = new EmployeeReport(); try { String servletPath = getServletContext().getRealPath("/"); String reportSource =servletPath + "template/employee.jrxml"; String reportDestPDF =servletPath + "reports/EmployeeReport.pdf"; params.put("reportTitle", "Hello Report World"); params.put("author", "Umme Habiba"); params.put("startDate", (new java.util.Date()).toString()); params.put("employeeChart", employeeReport.createEmployeeChartImage()); jasperDesign = JRXmlLoader.load(reportSource); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); Connection conn; conn = dbConnection.getConnection(); JasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, params, conn); jasperExportManager.exportReportToPdfFile(jasperPrint, reportDestPDF); ServletOutputStream servletOutputStream = response.getOutputStream(); JasperExportManager.exportReportToPdfStream(jasperPrint, servletOutputStream); JasperViewer.viewReport(jasperPrint); response.setContentType("application/pdf"); servletOutputStream.flush(); servletOutputStream.close(); } catch (JRException ex) {............. ....................createEmployeeChartImage():- public java.awt.Image createEmployeeChartImage(){ java.util.Hashtable employeeData = getEmployeeData(); DefaultPieDataset data = new DefaultPieDataset(); for(java.util.Enumeration e = employeeData.keys(); e.hasMoreElements();){ String employeeName = (String)e.nextElement(); data.setValue(employeeName, (Double)employeeData.get(employeeName)); } JFreeChart chart = ChartFactory.createPieChart("Employee Chart", data, true, true, true); return chart.createBufferedImage(500, 220); } .......................................................... Pls, help me with this.