Ver Mensaje Individual
  #234 (permalink)  
Antiguo 01/07/2005, 14:34
OscarEscobar
 
Fecha de Ingreso: junio-2005
Mensajes: 4
Antigüedad: 18 años, 10 meses
Puntos: 0
solucion a muchas imagenes

Cita:
Iniciado por Paola_Urizar
hola:
estoy empezando con jasperreport y tengo un problema al exportarlo a html el resultado de mi rreporte sale lleno de imagenes que parecieran que no existen con muchas x rojas mi codigo es el siguiente:
response.setContentType( "text/html" );
PrintWriter outout = response.getWriter();
JRHtmlExporter exporter = new JRHtmlExporter();
Map imagesMap = new HashMap();
request.getSession().setAttribute( "IMAGES_MAP", imagesMap );
exporter.setParameter( JRExporterParameter.JASPER_PRINT, jasperPrint );
exporter.setParameter( JRExporterParameter.OUTPUT_WRITER, outout );
exporter.setParameter( JRHtmlExporterParameter.IMAGES_MAP, imagesMap );
exporter.setParameter( JRHtmlExporterParameter.IMAGES_URI, "image?image=" );
exporter.exportReport();
no se si alguien me puede ayudar
Hola paola: lo que necesitas agregarle a tu codigo es lo siguiente...

exporter.setParameter(JRHtmlExporterParameter.IS_U SING_IMAGES_TO_ALIGN, new Boolean(false));

con esto te quitara todas las imagenes, tendras problemas si tu reporte incluye alguna imagen por que con este comando se inabilitan...

espero que te sirva.