dsuikgi9199 2014-05-24 14:56
浏览 197


I am using PHPExcel and executed their sample code as displayed on the website: https://phpexcel.codeplex.com/wikipage?title=Examples&referringTitle=Home

However, I can see the codes running well because I see this "message"

10:50:52 Create new PHPExcel object 10:50:52 Set properties 10:50:52 Add some data 10:50:52 Rename sheet 10:50:52 Write to Excel2007 format 10:50:52 Done writing file.

But I wasn't given an option to download any file? How do I trigger them to ask me to download the file?

  • 写回答

2条回答 默认 最新

  • doufei2007 2014-05-24 18:09

    If you look at some of the examples in the /Examples folder of the distribution or in the github repo, you'll find a number of examples with names like 01simple-download-xls.php or 01simple-download-xlsx.php that demonstrate how to send a generated Excel file to the browser.

    It's also a good idea to read the documentation, which also explains how to do this, e.g. section 4.6.40 of the developer documentation, entitled Redirect output to a client’s web browser.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!