doushang8512 2015-01-31 12:58
浏览 109

如何使用PHP编辑现有的.xls Excel文件

I am trying to edit my existing .xls Excel file. But i can't find the proper way to edit existing .xls excel file.

I had used PHPEXCEL for reading the .xls file and then writing the .xls file. But in that I lost some excel functionality like 'macro', 'vb form' from existing .xls file.

In my case, I need to update my Excel file day by day. So currently I am using PHPEXCEL, first I need to read Excel then write it with a new record.

So I am finding the way to edit existing .xls file with my new record.

Please share your idea if you find.

  • 写回答

1条回答 默认 最新

  • dpxw7293 2015-01-31 13:08
    关注

    If you need support for macros and forms, then you're pretty limited in your choices. There's only 3 options available:

    • Ilia Alshanetsky's Excel extension now on github (requires commercial libXL component)
    • PHP's COM extension (requires a COM enabled spreadsheet program such as MS Excel or OpenOffice Calc running on the server)
    • The Open Office alternative to COM (PUNO) (requires Open/Libre Office installed on the server with Java support enabled)
    评论

报告相同问题?

悬赏问题

  • ¥15 链接问题 C++LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接