在 ms word(97-2003) 中导出报告,而不在 jasper 报告中使用 RTFExporter

发布于 2024-08-13 18:28:42 字数 150 浏览 2 评论 0原文

我有一份报告需要使用 jasper 报告以纯文字格式(97-2003)导出。但是 Jasper 使用 RTFExporter 以 doc 格式导出报告,当我使用 POI 阅读报告时,它会抛出错误,说它不是纯单词。任何人都可以帮助如何使用 Jasper 报告生成 Word 报告。请帮忙!

I have a report which needs to be exported in pure word format(97-2003) using jasper report. But Jasper uses RTFExporter for exporting report in doc format, wen i read the report using POI, it throws error saying its not pure word. Can anyone help how to generate a report in word using Jasper reports. Please help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

向地狱狂奔 2024-08-20 18:28:42

我很确定你无法做任何比 Jasper 的 RTF 更接近的事情。如果您无法替换 Jasper 报告,那么您需要找到能够读取 RTF 并将其呈现为 DOC 的文件。
您可以使用 Docmosis 读取 RTF 并输出 DOC。 Docmosis 基于 OpenOffice 和 Java,OpenOffice 具有非常令人印象深刻的过滤器,可以以不同的格式保存。此外,大多数平台都受支持,因为您没有提到对您运行的系统类型的任何限制。

I'm pretty sure you can't do anything closer than RTF from Jasper. If you can't replace the Jasper report, then you need to find something that will read the RTF and render it as a DOC.
You could use Docmosis to read the RTF and spit out a DOC. Docmosis is based on OpenOffice and Java and OpenOffice has pretty impressive filters for saving in different formats. Also, most platforms are supported since you haven't mentioned any limitations on what type of system you are running on.

骄傲 2024-08-20 18:28:42

Aspose.Total 将允许您从 Jasper 生成 .doc 文件。

Aspose.Words for JasperReports 是
市场上唯一已知的解决方案
可以从以下位置导出报告
JasperReports 和 JasperServer
Microsoft Word 文档 (DOC)、Office
Open XML(OOXML、DOCX)、富文本
格式 (RTF)、开放文档文本 (ODT)、
网页 (HTML) 和纯文本 (TXT)
格式。

不过,它看起来相当昂贵。

Aspose.Total will allow you to generate .doc files from Jasper.

Aspose.Words for JasperReports is the
only known solution on the market that
makes possible exporting reports from
JasperReports and JasperServer to
Microsoft Word document (DOC), Office
Open XML (OOXML, DOCX), Rich Text
Format (RTF), OpenDocument Text (ODT),
Web page (HTML) and plain text (TXT)
formats.

It looks quite expensive, though.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文