本文介绍了HTML表格为Excel - PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我以表格格式创建报告。
此报告显示在浏览器上。
我想在excel格式链接中提供下载报告,以便报告可以在excel文件中使用。
我该如何做到这一点
I am creating a report in Table format.This report is displayed on the browser.I want to provide a download report in excel format link so that the report can be available in excel file also.How can I do this
推荐答案
您可以使用或或者甚至有更好更简单的解决方案。将表格HTML放在一个文件中,并将其保存为XLS文件,但这可能会带来各种问题。
Either you can use CSV functions or PHPExcel Or there is even a better and a simple solution. Just put the Table HTML in a file and save it as XLS file but that might give variety of problems.
这篇关于HTML表格为Excel - PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!