Ver Mensaje Individual
  #440 (permalink)  
Antiguo 19/01/2006, 06:13
lentini88
 
Fecha de Ingreso: enero-2006
Mensajes: 2
Antigüedad: 18 años, 3 meses
Puntos: 0
jasperreport - Could not load the following font

Estoy intentando mostrar el reporte desde un jsp

fuente:

<%@ page import="net.sf.jasperreports.engine.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="javax.naming.*" %>

<%
Connection conn = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String filename = "D:\\dbDatos\\GestionCentros.mdb";
String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
database+= filename.trim() + ";DriverID=22;READONLY=false}";
conn = DriverManager.getConnection( database ,"","");
String fileName = ("/reportes/listaCentrosDos.jasper");
File sourceFile= new File(application.getRealPath(fileName));
byte[] bytes = JasperRunManager.runReportToPdf(sourceFile.getPath (), new HashMap(), conn);

response.setContentType("application/pdf");
response.setContentLength(bytes.length);
ServletOutputStream ouputStream = response.getOutputStream();
ouputStream.write(bytes, 0, bytes.length);
ouputStream.flush();
ouputStream.close();


%>


y me muestra el siguiente error:

javax.servlet.ServletException: Could not load the following font :
pdfFontName : Times-Roman
pdfEncoding : CP1252
isPdfEmbedded : false

NESTED BY :
net.sf.jasperreports.engine.JRException: Could not load the following font :
pdfFontName : Times-Roman
pdfEncoding : CP1252
isPdfEmbedded : false

Gracias anticipadas,

Saludos