birt、doc 报告和一个非常大的文件
我们正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简单的答案是使用不同的输出格式而不是 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).