Retrieve User-defined Cells from Shapesheet in PHP

Aspose.Diagram - Retrieve User-defined Cells from Shapesheet

To Retrieve User-defined Cells from Shapesheet using Aspose.Diagram Java for PHP, simply invoke GetUserDefinedCells module. Here you can see example code.

PHP Code

 # Create instance of Diagram

$diagram=new Diagram($dataDir . "drawing.vdx");

$pages=$diagram->getPages();

$count=0;

while($count<(int)(string)$pages->getCount()) {

$page = $pages->get($count);

$shapes = $page->getShapes();

$i = 0;

while ($i<(int)(string)$shapes->getCount()) {

$shape = $shapes->get($i);

if ($shape->getNameU() == "Process") {

$users = $shape->getUsers();

$j = 0;

while ($j<(int)(string)$users->getCount()) {

$user = $users->get($j);

print "Name: " . $user->getNameU() . " Value: " . $user->getValue()->getVal() . " Prompt: " . $user->getPrompt()->getValue();

$j += 1;

}

break;

}

$i += 1;

}

$count += 1;

}

Download Running Code

Download Retrieve User-defined Cells from Shapesheet (Aspose.Diagram) from any of the below mentioned social coding sites: