如何在jasper报告中导出为ex​​cel和csv格式 [英] how to export to excel and csv format in jasper report

查看:272
本文介绍了如何在jasper报告中导出为ex​​cel和csv格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在jasper报告中导出为ex​​cel和csv格式。
for excel我尝试通过创建自定义类(使用api)但它不是导出,事情是保存和取消弹出窗口即将发布文件类型未知..

i need to export to excel and csv format in jasper reports. for excel i tried by creating custom class (using api)but it is not exporting, the thing is save and cancel popup window is coming with file type unkown..

任何想法为什么会这样?

any idea why it is happening?

推荐答案

用作 JRXlsExporter 导出到XSL和 JRCsvExporter

应该没有在大多数情况下需要创建自定义类。

There should be no need to create a custom class in most cases.

编辑

班级存储在jar poi-3.5-FINAL-20090928.jar中,它应该位于你的iReportInstallationFolder中\ modules \ ecxt \

The class is stored inside the jar poi-3.5-FINAL-20090928.jar, which should be locate in your "iReportInstallationFolder"\modules\ext\

对我来说它是 C:\Program Files\Jaspersoft\iReport-3.7.4\ireport\modules \\ ext \

名称可能不同,但应该是poi-3.5-FINAL - * .jar。

The name could be different but should be poi-3.5-FINAL-*.jar.

让它包含在你的类路径中你应该没问题。

Make it is included in your classpath and you should be fine.

你可以从 Apache Poi 主页。

这是我从他们网站上获得的jar的链接< a href =http://archive.apache.org/dist/poi/release/bin/poi-bin-3.5-FINAL-20090928.tar.gz =noreferrer> http://archive.apache。 org / dist / poi / release / bin / poi-bin-3.5-FINAL-20090928.tar.gz

Here is a link to the jar I have from their site http://archive.apache.org/dist/poi/release/bin/poi-bin-3.5-FINAL-20090928.tar.gz

这篇关于如何在jasper报告中导出为ex​​cel和csv格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆