Hi,
I am having problem exporting jrprint file to csv file, the image part
of the report didn't get exported to csv file. same jrprint file can be
exported to pdf file w/o any problem. what am I doing wrong?
thanks,
Leon
source code -
........
OutputStream os = response.getOutputStream();
try {
response.setContentType("text/html");
response.setHeader("Content-Disposition",
"attachment; filename=\"" + reportName +
PresentationUtil.EXPORT_FILE_EXTS[exportMode]
+ "\"");
........
switch (exportMode) {
case EXPORT_CSV :
JRCsvExporter csvExporter = new JRCsvExporter();
csvExporter.setParameter(JRExporterParameter.INPUT_FILE_NAME,
path + rptName + JR_PRINT_EXT);
csvExporter.setParameter(
JRExporterParameter.OUTPUT_STREAM, os);
csvExporter.exportReport();
break;
case EXPORT_PDF :
JRPdfExporter pdfExporter = new JRPdfExporter();
pdfExporter.setParameter(JRExporterParameter.INPUT_FILE_NAME,
path + rptName + JR_PRINT_EXT);
pdfExporter.setParameter(
JRExporterParameter.OUTPUT_STREAM, os);
pdfExporter.exportReport();
break;
}
csv file -
Mesh Packet Error Stats - mpe_report,,
Generated: Thu Jan 25 16:10:00 PST 2007,,
Report By: AP By Controller,,
Controller: 172.19.28.45 -> All Access Points,,
Reporting Period: Last 1 hours,,
Aggregation Frequency: N/A,,
,Page 1 of, 4
Page 2 of, 4
Page 3 of, 4
Page 4 of, 4
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions