donglian3055 2011-05-06 15:46
浏览 255
已采纳

PHPExcel克隆.xlsm与宏

I'm trying to read, clone and write and .xlsm file with PHPExcel but I get an error: Fatal error: Uncaught exception 'Exception' with message 'Worksheet!G177 -> Formula Error: An unexpected error occured' in...

Anybody know how can I read, clone and write and Excel file with macros, I mean the macros are in a template (the file that I reading) I just want to clone that file and write on it, and just keep the macros in the new file. Is that possible with PHPExcel ? is there another library to do that ?

Thanks .

  • 写回答

2条回答 默认 最新

  • duanboshe0001 2011-05-06 20:26
    关注

    First:

    • PHPExcel does not support reading Excel macro (.xlsm) files.

    Second:

    • it doesn't support macros.

    And I'm not aware of any PHP libraries that support this.

    The only way that I know for certain that you could do this would be using PHPs COM extension, on a server with MS Excel itself installed.

    The only alternative to COM that may work would be Ilia Alshanetsky's Excel extension

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 有没有帮写代码做实验仿真的
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥30 vmware exsi重置后登不上
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题