birt、doc 报告和一个非常大的文件

发布于 2024-12-13 23:25:56 字数 264 浏览 4 评论 0原文

我们正在使用 Birt 生成一些 doc 和 pdf 格式的报告。报告很简单,没有任何图表和图形。只有文字。

我的主要问题是这些文件的大小不同,例如:

  • PDF - 251 KB,DOC - 5 584 KB
  • PDF - 3 217 KB,DOC - 82 572 KB

我们没有对输出文件使用任何特定配置(仅格式:文档/pdf)。

有什么办法可以减少doc文件的大小吗?

谢谢 卢卡斯

We are using Birt to generate some reports in doc and pdf. Reports are simple, without any graphs and graphics. Only text.

My main problem is difference in the sizes of those files, for example:

  • PDF - 251 KB, DOC - 5 584 KB
  • PDF - 3 217 KB, DOC - 82 572 KB

We are not using any specific configuration for output file (only format: doc/pdf).

Is there any way to reduce the doc file size ?

thx
Lukasz

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

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

发布评论

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

评论(1

月棠 2024-12-20 23:25:56

简单的答案是使用不同的输出格式而不是 Word .doc - 例如 html 或 xls。或者,对于真正紧凑的输出,您可以使用报告查看器中的“导出数据”选项以字符分隔格式(默认情况下以逗号分隔)生成输出。

或者,您可以考虑使用自定义 BIRT 发射器。 BIRT World 博客上有一篇关于该主题的帖子 此处< /a> (特别与 xls 发射器相关,尽管提到的 Tribix 发射器还应该启用 RTF 输出,RTF 是 Word 可读的 Microsoft 格式,比 doc 简洁得多)。

The simple answer would be to use a different output format instead of Word .doc - for example, html or xls. Alternatively, for really compact output, you could use the Export Data option from the report viewer to produce output in character-separated format (comma-separated, by default).

Alternatively, you could consider using custom BIRT emitters. There's a post on the subject on the BIRT World blog here (specifically relating to xls emitters, although the Tribix emitters mentioned should also enable output to RTF, a Microsoft format readable by Word that is much more concise than doc).

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