exporter.setParameter(JRExporterParameter.JASPER_PRINT, reportPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, buf);
exporter.setParameter(JRExporterParameter.IGNORE_PAGE_MARGINS, true);
exporter.setParameter(JRExporterParameter.FILTER, noLayoutFilter);
exporter.exportReport();
outReport.setContent(buf.toByteArray());
}
else if ("xls".equals(format))
{
res.addOutput("contentType", "application/xls");