duanboxue3422 2015-04-07 13:14
浏览 125
已采纳

如何使用PHP生成MS Project(.mpp)文件

I need to generate MS Project (.mpp) file using PHP, as I tried generating .xml but when oppening that files with MS Project, dates and durations are lost.

I tried creating a project with the MS Project itself and saving it as a .xml but it loses dates and durations too.

EDIT: Need to be MS Project 2013 friendly, so .mpx solutions like PHPProject offer do not help...

  • 写回答

1条回答 默认 最新

  • dqask02082 2015-04-07 13:48
    关注

    There's a Java-based project called MPXJ, which lets you create and manipulate Project files. You could either look at the source code and port it, or as a quick fix, just run it on the server and generate files on demand using a PHP/Java bridge (it's mentioned in the MPXJ documentation).

    ===

    Edit: MPXJ doesn't write .mpp files.

    According to the authors of MPXJ, the .mpp format is proprietary and there is no reliable way to generate the files. (See this answer - although it's from 2012, MPXJ still doesn't support writing MPP files, and the prediction about MPPX files hasn't yet come to pass.

    The only way I can think of is to have a Windows server with Project installed that generates the files for you.

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

报告相同问题?

悬赏问题

  • ¥30 vmware exsi重置后登不上
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?
  • ¥15 电磁场的matlab仿真
  • ¥15 mars2d在vue3中的引入问题
  • ¥50 h5唤醒支付宝并跳转至向小荷包转账界面