开发者

Is it possible to access a COM Object from Linux

开发者 https://www.devze.com 2022-12-26 00:56 出处:网络
Office is running in Wine, meaning I have a running Version (2003). Bu开发者_JAVA百科t when I try to create a new COM object I just get the following error:

Office is running in Wine, meaning I have a running Version (2003).

Bu开发者_JAVA百科t when I try to create a new COM object I just get the following error:

Fatal error: Class 'COM' not found

<?php
$com = new COM('Word.Application');
$com->close();

Is there a way to get this working without installing Windows?


You have to run PHP under Wine as well, or have some sort of program running under Wine that can act as a proxy.

0

精彩评论

暂无评论...
验证码 换一张
取 消