简体   繁体   English

有没有办法在不使用任何phpexcel库(如csv或xml文件)的情况下编写xlsx文件

[英]Is there any way to write xlsx file without using any phpexcel library like csv or xml file

I have tried creating simple .xlsx file like the way I would crate .csv file. 我已经尝试创建简单的.xlsx文件,就像我创建.csv文件一样。 File has been generated and it works fine in ubuntu. 文件已生成,在ubuntu中工作正常。 But in windows, the same file cannot be opened it says, invalid file contents or file format. 但在Windows中,同样的文件无法打开它说,无效的文件内容或文件格式。 I can create it with Phpexcel library, but is there any way that I can do it without using library just with core php ? 我可以使用Phpexcel库创建它,但是有没有办法我可以在不使用核心php的库的情况下完成它? Or is it that, I need to do all the code of library itself ? 或者是这样,我需要做所有的库本身代码?

This is just a query. 这只是一个查询。 I don't have any codes to show. 我没有任何代码可以显示。 Thanks in advance. 提前致谢。

https://github.com/PHPOffice/PhpSpreadsheet this is the best library that i got for handling all kinds of documents. https://github.com/PHPOffice/PhpSpreadsheet这是我处理各种文档的最佳库。 In addition, it works perfect with macros. 此外,它与宏完美配合。 Hope this helps. 希望这可以帮助。 Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM