We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Cells from PHP

hi ,php use JavaBridge.jar from java

here is my code

require("…/…/…/…/test/Java.inc");
require("…/…/…/…/test/AsposeCells.php");
$abc= array(‘id’=>18,‘name’=>‘da’);
$workbook = ClassFactory::createWorkbook();
$workbook->openS(‘d:\temp\test1.xls’);
$workbookdesigner= ClassFactory::create1WorkbookDesigner($workbook);
print_r($abc);
$workbookdesigner->setDataSourceSO1(‘info’,$abc);
$workbookdesigner->process();
$workbookdesigner->getWorkbook()->saveS(‘d:\temp\cells_out.xls’);

test1.xls
num name
&=info.id &=info.name

cells_out.xls
num name



Pleasse Help me .Why cells.out.xls is nothing.

it seams
num name
18 da

Hi,

Thanks for using Aspose.Cells.

We do not recommend users to use Aspose.Cells directly from PHP, instead we recommend you to make some wrapper JAR or assembly around Aspose.Cells yourself and then use your own wrapper assembly or JAR.

For example, in your wrapper assembly, you can write a code like

void ProcessMyData()
{
//write all aspose.cells related code inside it.
}

then from PHP, you can call ProcessMyData() and process everything inside it.

You can research on internet how you can create such a wrapper JAR or assembly which could be used in PHP.

Besides, we now recommend PHP users to use Aspose.Cells for Cloud (REST based
APIs). Because these APIs can be used in any platform and languages.

Please also read the following product pages to get familiar with the Cloud APIs.