我需要在我的PHP网站( zend框架中)生成报告。
所需格式:
PDF (with tables & images) // presently using Zend_Pdf
XLS (with tables & images)
DOC (with tables & images)
CSV (only tables)
请推荐在PHP中生成报告的健壮和快速解决方案。
平台:灯上的Zend框架
我知道创建这样的报告有一些棘手的解决方案,我想知道有什么开源的报告生成实用工具可以与LAMP环境一起使用吗?
发布于 2009-05-18 11:30:15
Excel:http://www.phpexcel.net
发布于 2009-05-22 17:57:37
在基于LAMP的应用程序中,我成功地集成了生成报表的能力。
为此,我使用PHP/Java与Jasper类进行通信。您可能需要尝试Zend,因为它在安装时提供了此组件。
查看这个博客,它是我的最终解决方案:http://www.rjohnson.id.au/wordpress/2007/10/27/bullet-proof-jasper-reports-and-php/的灵感来源。
发布于 2009-05-14 13:12:14
我猜你是说CSV而不是CVS。对于excel和csv文件,可以使用
header("Content-Type: text/comma-seperated-values");
header("Content-Disposition: inline; filename=\"file.csv";");
和
header("Content-Type: application/vnd.ms-excel");
header("Content-Disposition: inline; filename=\"file.xls";")
分别使用。确保关闭所有格式,只输出CSV格式的值和逗号,对于XLS格式,可以使用常规的html表。
https://stackoverflow.com/questions/862607
复制相似问题