0

我正在使用Aspose API,.NET Components平台Aspose.Words for .NET产品。

这是我的test.php代码,

<?php
                //this is working correctly 
                $word = new COM("word.application");

                //return error in here
                $helper = new COM("Aspose.Words.ComHelper");
                $builder = new COM("Aspose.Words.DocumentBuilder");
                $license = new COM("Aspose.Words.License");
?>

当我运行它时,它会返回此错误,

在此处输入图像描述

这是我的视力信息,

  • WAMP 服务器 2.5
  • 阿帕奇 2.4.9
  • PHP 5.5.12
  • .NET 框架 4.6.1

怎么了。谁能帮我解决这个问题。

4

1 回答 1

0

请阅读以下文章以使用 PHP 和 Aspose.Words。

适用于 .NET 的 PHP 和 Aspose.Words

您可以配置您的 PHP 以使用 COM。请参阅http://www.php.net/manual/en/book.com.php了解更多信息。另请阅读通过 COM Interop 为 .NET 使用 Aspose.Words

我与 Aspose 合作,担任开发人员传道者。

于 2016-03-25T14:40:33.110 回答