使用 PHP 处理 Office 打开 xml (xlsx) 文档
我需要创建一种基于 php 的 Excel (xslx) 处理组件。我想那儿 有几个开源项目都与此相关。有没有人有具体的 对我来说这方面的经验/建议?即选择哪一种,避免哪一种?
我倾向于使用 PHP-Excel。
提前感谢您的想法...
K
I need to create sort of a php based Excel (xslx) handling component. I figured that there
are several open source projects around which are into this. Does anyone has particular
experiences / advice on this for me? I.e. which one to go with, which one is to be avoided?
I tend to go with PHP-Excel.
thx in advance for your thoughts...
K
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这取决于您想要完成什么。如果您需要精确生成 Excel 文件,那么这样的包就是您的最佳选择。使用它,您可以根据需要指定电子表格。
如果您需要打开一个文件并在其中进行搜索和替换,通常此类软件包无法执行此操作。然后你最好手动修改该文件:
听起来很乏味,但这是一次巨大的学习体验,让您能够更好地控制文件。
It depends on what you want to accomplish. If you need to precisely generate an excel file, such a package is the way to go. Using it, you can specify the spreadsheet as much as you like/need.
If you need to open a file and search-and-replace in it, usually such packages are unable to do so. Then you had better manually modify the file:
Sounds tedious, but is a tremendous learning experience and gives you even more control over the file.
我多次使用 PHP-Excel。其中一位作者在 博客上提供了一些示例,抱歉仅使用捷克语< /a>.
I used PHP-Excel for many times. One of authors have some examples on blog, sorry only in czech.