Last active
July 22, 2017 08:15
-
-
Save aspose-cells/ac7f938785f2dae1fcb906067f5e06cb to your computer and use it in GitHub Desktop.
The GIST contains PHP code snippets for examples of Aspose.Cells for Cloud.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aspose.Cells-for-Cloud-for-PHP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetDateFilter() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name="Sheet1"; | |
$field_index=0; | |
$date_time_grouping_type="Year"; | |
$year=1920; | |
$result = $this->cells->deleteWorksheetDateFilter($name, $sheet_name, $field_index, $date_time_grouping_type, $year, $month=null, $day=null, $hour=null, $minute=null, $second=null, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->deleteWorksheetDateFilter(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetFilter() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name="Sheet1"; | |
$field_index=0; | |
$criteria="Year"; | |
$result = $this->cells->deleteWorksheetFilter($name, $sheet_name, $field_index, $criteria, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->deleteWorksheetFilter(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetAutoFilter() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "Sheet1"; | |
$result = $this->cells->getWorksheetAutoFilter($name, $sheet_name, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->getWorksheetAutoFilter(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorksheetAutoFilterRefresh() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "Sheet1"; | |
$result = $this->cells->postWorksheetAutoFilterRefresh($name, $sheet_name, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->postWorksheetAutoFilterRefresh(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorksheetMatchBlanks() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "Sheet1"; | |
$field_index=0; | |
$result = $this->cells->postWorksheetMatchBlanks($name, $sheet_name, $field_index, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->postWorksheetMatchBlanks(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorksheetMatchNonBlanks() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "Sheet1"; | |
$field_index=0; | |
$result = $this->cells->postWorksheetMatchNonBlanks($name, $sheet_name, $field_index, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->postWorksheetMatchNonBlanks(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetColorFilter() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "Sheet1"; | |
$range="A1:B1"; | |
$field_index=0; | |
$color_filter = '{ | |
"Pattern": "Solid", | |
"ForegroundColor": { | |
"Color": { | |
"A": "255", | |
"R": "0", | |
"G": "255", | |
"B": "255" | |
}, | |
"ThemeColor": { | |
"ColorType": "Text2", | |
"Tint": "1" | |
}, | |
"Type": "Automatic" | |
}, | |
"BackgroundColor": { | |
"Color": { | |
"A": "255", | |
"R": "255", | |
"G": "0", | |
"B": "0" | |
}, | |
"ThemeColor": { | |
"ColorType": "Text2", | |
"Tint": "1" | |
}, | |
"Type": "Automatic" | |
} | |
}'; | |
$match_blanks=true; | |
$result = $this->cells->putWorksheetColorFilter($name, $sheet_name, $range, $field_index, $color_filter, $match_blanks, $refresh=null, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->putWorksheetColorFilter(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetCustomFilter() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "Sheet1"; | |
$range="A1:B1"; | |
$field_index=0; | |
$operator_type1="LessOrEqual"; | |
$criteria1 = 1; | |
$result = $this->cells->putWorksheetCustomFilter($name, $sheet_name, $range, $field_index, $operator_type1, $criteria1, $is_and=null, $operator_type2=null, $criteria2=null, $match_blanks=null, $refresh=null, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->putWorksheetCustomFilter(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetDateFilter() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "Sheet1"; | |
$range="A1:B1"; | |
$field_index=0; | |
$date_time_grouping_type="Year"; | |
$year=1920; | |
$match_blanks=false; | |
$refresh=true; | |
$result = $this->cells->putWorksheetDateFilter($name, $sheet_name, $range, $field_index, $date_time_grouping_type, $year, $month=null, $day=null, $hour=null, $minute=null, $second=null, $match_blanks, $refresh, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->putWorksheetDateFilter(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetDynamicFilter() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "Sheet1"; | |
$range="A1:B1"; | |
$field_index=0; | |
$dynamic_filter_type="BelowAverage"; | |
$match_blanks=true; | |
$result = $this->cells->putWorksheetDynamicFilter($name, $sheet_name, $range, $field_index, $dynamic_filter_type, $match_blanks, $refresh=null, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->putWorksheetDynamicFilter(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetFilter() { | |
// Upload file to Aspose Cloud Storage | |
$name = "AutoFilter.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "Sheet1"; | |
$range="A1:B13"; | |
$field_index=0; | |
$criteria="Year"; | |
$result = $this->cells->putWorksheetFilter($name, $sheet_name, $range, $field_index, $criteria, $match_blanks=null, $refresh=null, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->putWorksheetFilter(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetFilterTop10() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "Sheet1"; | |
$range="A1:B1"; | |
$field_index=0; | |
$is_top="true"; | |
$item_count = 1; | |
$match_blanks = "true"; | |
$is_percent = "true"; | |
$result = $this->cells->putWorksheetFilterTop10($name, $sheet_name, $range, $field_index, $is_top, $item_count, $is_percent, $match_blanks, $refresh=null, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->putWorksheetFilterTop10(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class FilterData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetIconFilter() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "Sheet1"; | |
$range="A1:B1"; | |
$field_index=0; | |
$icon_set_type="ArrowsGray3"; | |
$icon_id = 1; | |
$match_blanks = "false"; | |
$result = $this->cells->putWorksheetIconFilter($name, $sheet_name, $range, $field_index, $icon_set_type, $icon_id, $match_blanks, $refresh=null, $folder=null); | |
print_r($result); | |
} | |
} | |
$filterData = new FilterData(); | |
$filterData->putWorksheetIconFilter(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCell($name=$fileName, $sheetName="Sheet1", $cellOrMethodName="A1", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCells() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCells($name=$fileName, $sheetName="Sheet1", $offest = null, $count = null, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCells(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCellStyle() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCellStyle($name=$fileName, $sheetName="Sheet1", $cellName="A7", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCellStyle(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCell($name=$fileName, $sheetName="Sheet2", $cellOrMethodName="firstcell", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCell($name=$fileName, $sheetName="Sheet2", $cellOrMethodName="endcell", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCell($name=$fileName, $sheetName="Sheet2", $cellOrMethodName="maxcolumn", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCell($name=$fileName, $sheetName="Sheet2", $cellOrMethodName="maxdatacolumn", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCell($name=$fileName, $sheetName="Sheet2", $cellOrMethodName="maxdatarow", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCell($name=$fileName, $sheetName="Sheet2", $cellOrMethodName="maxrow", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheetMergedCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkSheetMergedCell($name=$fileName, $sheetName="Sheet1", $mergedCellIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorkSheetMergedCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheetMergedCells() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
$this->uploadFile($fileName); | |
$result = $this->cells->GetWorkSheetMergedCells($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorkSheetMergedCells(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCell($name=$fileName, $sheetName="Sheet2", $cellOrMethodName="mincolumn", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCell($name=$fileName, $sheetName="Sheet2", $cellOrMethodName="mindatacolumn", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCell($name=$fileName, $sheetName="Sheet2", $cellOrMethodName="mindatarow", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCell($name=$fileName, $sheetName="Sheet2", $cellOrMethodName="minrow", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->getWorksheetCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postCalulateCellFormula() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheetName = "Sheet1"; | |
$cellName="A1"; | |
$formula = "NOW()"; | |
// Set cell value | |
$result = $this->cells->PostWorksheetCellSetValue($name, $sheetName, $cellName, $value = null, $type = null, $formula, $storage = null, $folder = null); | |
$options = '{ | |
"CalcStackSize": "1" | |
}'; | |
$result = $this->cells->postCalulateCellFormula($name, $sheetName, $cellName, $options, $folder=null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->postCalulateCellFormula(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postCellTextFormatting() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheetName = "Sheet1"; | |
$cellName="A1"; | |
$value="121211212112"; | |
$type="string"; | |
// Set cell value | |
$result = $this->cells->PostWorksheetCellSetValue($name, $sheetName, $cellName, $value, $type, $formula = null, $storage = null, $folder = null); | |
$options = '{ | |
"FontSetting": [ | |
{ | |
"Font": { | |
"IsBold": "true", | |
"Size": "24" | |
}, | |
"Length": "5", | |
"StartIndex": "0" | |
}, | |
{ | |
"Font": { | |
"IsItalic": "true", | |
"Size": "15" | |
}, | |
"Length": "4", | |
"StartIndex": "5" | |
} | |
] | |
}'; | |
$result = $this->cells->postCellTextFormatting($name, $sheetName, $cellName, $options, $folder=null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->postCellTextFormatting(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postClearContents() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostClearContents($name=$fileName, $sheetName="Sheet1", $range = "A2:C11", $startRow = 2, $startColumn = 1, $endRow = 11, $endColumn = 3, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->postClearContents(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postClearFormats() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostClearFormats($name=$fileName, $sheetName="Sheet1", $range = "A2:C11", $startRow = 2, $startColumn = 1, $endRow = 11, $endColumn = 3, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->postClearFormats(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postCopyCellIntoCell() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostCopyCellIntoCell($name=$fileName, $destCellName="C5", $sheetName="Sheet1", $worksheet="Sheet1", $cellname="A5", $row = null, $column = null, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->postCopyCellIntoCell(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postSetCellHtmlString() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
//$file = realpath(__DIR__ . '/../../..') . '/Data/index.html'; | |
$result = $this->cells->PostSetCellHtmlString($name=$fileName, $sheetName="Sheet1", $cellName="A3", $storage = null, $folder = null, $file = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->postSetCellHtmlString(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postSetCellRangeValue() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostSetCellRangeValue($name=$fileName, $sheetName="Sheet1", $cellarea="A10:B20", $value="1234", $type="int", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->postSetCellRangeValue(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postUpdateWorksheetCellStyle() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"BackgroundThemeColor": { | |
"ColorType": "Text2", | |
"Tint": 1 | |
} | |
}'; | |
$result = $this->cells->PostUpdateWorksheetCellStyle($name=$fileName, $sheetName="Sheet3", $cellName="A1", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->postUpdateWorksheetCellStyle(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorksheetCellSetValue() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostWorksheetCellSetValue($name=$fileName, $sheetName="Sheet1", $cellName="A3", $value="1234", $type="string", $formula = "sum(a1,a2)", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->postWorksheetCellSetValue(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorksheetMerge() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostWorksheetMerge($name=$fileName, $sheetName="Sheet1", $startRow=1, $startColumn=1, $totalRows=10, $totalColumns=10, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->postWorksheetMerge(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorksheetUnmerge() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostWorksheetUnmerge($name=$fileName, $sheetName="Sheet3", $startRow=1, $startColumn=1, $totalRows=10, $totalColumns=10, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->postWorksheetUnmerge(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function cellsChartsPostWorksheetChart() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "sheet4"; | |
$chart_index= 1; | |
$chart = '{ | |
"Type": "line" | |
}'; | |
$result = $this->cells->cellsChartsPostWorksheetChart($name, $sheet_name, $chart_index, $chart, $storage=null, $folder=null); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->cellsChartsPostWorksheetChart(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetChartLegend() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetChartLegend($name=$fileName, $sheetName="Sheet5", $chartIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->deleteWorksheetChartLegend(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetChartTitle() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetChartTitle($name=$fileName, $sheetName="Sheet5", $chartIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->deleteWorksheetChartTitle(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetClearCharts() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetClearCharts($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->deleteWorksheetClearCharts(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetDeleteChart() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetDeleteChart($name=$fileName, $sheetName="Sheet5", $chartIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->deleteWorksheetDeleteChart(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getChartArea() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetChartArea($name=$fileName, $sheetName="Sheet5", $chartIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->getChartArea(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getChartAreaBorder() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetChartAreaBorder($name=$fileName, $sheetName="Sheet5", $chartIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->getChartAreaBorder(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getChartAreaFillFormat() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetChartAreaFillFormat($name=$fileName, $sheetName="Sheet5", $chartIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->getChartAreaFillFormat(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetChart() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetChart($name=$fileName, $sheetName="Sheet1", $chartNumber="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->getWorksheetChart(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetChartLegend() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetChartLegend($name=$fileName, $sheetName="Sheet5", $chartIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->getWorksheetChartLegend(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetCharts() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetCharts($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->getWorksheetCharts(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetChartWithFormat() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetChartWithFormat($name=$fileName, $sheetName="Sheet5", $chartIndex="0", $format="png", $storage = null, $folder = null); | |
$fh = fopen(realpath(__DIR__ . '/../../..') . '/Data/Output/Chart.png', 'w'); | |
fwrite($fh, $result); | |
fclose($fh); | |
} | |
} | |
$chart = new Chart(); | |
$chart->getWorksheetChartWithFormat(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorksheetChartLegend() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$body = array("Legend"=>array("Position"=>"Bottom")); | |
$result = $this->cells->PostWorksheetChartLegend($name=$fileName, $sheetName="Sheet5", $chartIndex="0", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->postWorksheetChartLegend(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorksheetChartTitle() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = array("Title"=>array("Text"=>"Sales Report")); | |
$result = $this->cells->PostWorksheetChartTitle($name=$fileName, $sheetName="Sheet1", $chartIndex="0", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->postWorksheetChartTitle(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetAddChart() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "CreateChart.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PutWorksheetAddChart($name=$fileName, $sheetName="Sheet1", $chartType="Column", $upperLeftRow = 5, $upperLeftColumn = 0, $lowerRightRow = 15, $lowerRightColumn = 5, $area = "A1:B4", $isVertical = true, $categoryData = "C1:C4", $isAutoGetSerialName = true, $title = "SalesState", $storage = null, $folder = null); | |
print_r($result); | |
// Download updated CreateChart.xlsx file | |
Utils::downloadFile($fileName, "CreateChart_out.xlsx"); | |
} | |
} | |
$chart = new Chart(); | |
$chart->putWorksheetAddChart(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetChartLegend() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PutWorksheetChartLegend($name=$fileName, $sheetName="Sheet5", $chartIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->putWorksheetChartLegend(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Chart { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetChartTitle() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$body = array("Title"=>array("Text"=>"Sales Report")); | |
$result = $this->cells->PutWorksheetChartTitle($name=$fileName, $sheetName="Sheet5", $chartIndex="0", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$chart = new Chart(); | |
$chart->putWorksheetChartTitle(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class DocumentProperty { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteDocumentProperties() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteDocumentProperties($name=$fileName, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$documentProperty = new DocumentProperty(); | |
$documentProperty->deleteDocumentProperties(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class DocumentProperty { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteDocumentProperty() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteDocumentProperty($name=$fileName, $propertyName="author", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$documentProperty = new DocumentProperty(); | |
$documentProperty->deleteDocumentProperty(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class DocumentProperty { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getDocumentProperties() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetDocumentProperties($name=$fileName, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$documentProperty = new DocumentProperty(); | |
$documentProperty->getDocumentProperties(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class DocumentProperty { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getDocumentProperty() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetDocumentProperty($name=$fileName, $propertyName="Title", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$documentProperty = new DocumentProperty(); | |
$documentProperty->getDocumentProperty(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class DocumentProperty { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putDocumentProperty() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = array("Value"=>"Aspose"); | |
$result = $this->cells->PutDocumentProperty($name=$fileName, $propertyName="Title", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$documentProperty = new DocumentProperty(); | |
$documentProperty->putDocumentProperty(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Hyperlink { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorkSheetHyperlink() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorkSheetHyperlink($name=$fileName, $sheetName="Sheet2", $hyperlinkIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$hyperlink = new Hyperlink(); | |
$hyperlink->deleteWorkSheetHyperlink(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Hyperlink { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorkSheetHyperlinks() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorkSheetHyperlinks($name=$fileName, $sheetName="Sheet2", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$hyperlink = new Hyperlink(); | |
$hyperlink->deleteWorkSheetHyperlinks(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Hyperlink { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheetHyperlink() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkSheetHyperlink($name=$fileName, $sheetName="Sheet2", $hyperlinkIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$hyperlink = new Hyperlink(); | |
$hyperlink->getWorkSheetHyperlink(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Hyperlink { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheetHyperlinks() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkSheetHyperlinks($name=$fileName, $sheetName="Sheet2", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$hyperlink = new Hyperlink(); | |
$hyperlink->getWorkSheetHyperlinks(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Hyperlink { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorkSheetHyperlink() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = array("Address"=>"http://www.aspose.com", "TextToDisplay"=>"Welcome to Aspose", "ScreenTip"=>"Hello World"); | |
$result = $this->cells->PostWorkSheetHyperlink($name=$fileName, $sheetName="Sheet1", $hyperlinkIndex="0", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$hyperlink = new Hyperlink(); | |
$hyperlink->postWorkSheetHyperlink(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Hyperlink { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorkSheetHyperlink() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PutWorkSheetHyperlink($name=$fileName, $sheetName="Sheet1", $firstRow=1, $firstColumn=1, $totalRows=2, $totalColumns=2, $address="http://www.aspose.com/", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$hyperlink = new Hyperlink(); | |
$hyperlink->putWorkSheetHyperlink(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Image { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetAutoshapeWithFormat() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetAutoshapeWithFormat($name=$fileName, $sheetName="Sheet4", $autoshapeNumber=1, $format="png", $storage = null, $folder = null); | |
$fh = fopen(realpath(__DIR__ . '/../../..') . '/Data/Output/Autoshape.png', 'w'); | |
fwrite($fh, $result); | |
fclose($fh); | |
} | |
} | |
$image = new Image(); | |
$image->getWorksheetAutoshapeWithFormat(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class ImportData { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postImportData() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"DestinationWorksheet": "Sheet3", | |
"IsInsert": true | |
}'; | |
$result = $this->cells->PostImportData($name=$fileName, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$importData = new ImportData(); | |
$importData->postImportData(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Cell { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postSortTableData() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$sheet_name = "sheet7"; | |
$list_object_index = 1; | |
$data_sorter = '{ | |
"CaseSensitive": "true", | |
"KeyList": { | |
"SortKey": { | |
"Key": "1", | |
"SortOrder": "Ascending" | |
} | |
} | |
}'; | |
$result = $this->cells->postSortTableData($name, $sheet_name, $list_object_index, $data_sorter, $folder=null); | |
print_r($result); | |
} | |
} | |
$cell = new Cell(); | |
$cell->postSortTableData(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class OLEObject { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetOleObject() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Embeded_OleObject_Sample_Book1.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetOleObject($name=$fileName, $sheetName="Sheet1", $oleObjectIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$oLEObject = new OLEObject(); | |
$oLEObject->deleteWorksheetOleObject(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class OLEObject { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetOleObjects() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Embeded_OleObject_Sample_Book1.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetOleObjects($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$oLEObject = new OLEObject(); | |
$oLEObject->deleteWorksheetOleObjects(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class OLEObject { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetOleObject() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Embeded_OleObject_Sample_Book1.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetOleObject($name=$fileName, $sheetName="Sheet1", $objectNumber="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$oLEObject = new OLEObject(); | |
$oLEObject->getWorksheetOleObject(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class OLEObject { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetOleObjects() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Embeded_OleObject_Sample_Book1.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetOleObjects($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$oLEObject = new OLEObject(); | |
$oLEObject->getWorksheetOleObjects(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class OLEObject { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetOleObjectWithFormat() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Embeded_OleObject_Sample_Book1.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetOleObjectWithFormat($name=$fileName, $sheetName="Sheet1", $objectNumber="0", $format="png", $storage = null, $folder = null); | |
$fh = fopen(realpath(__DIR__ . '/../../..') . '/Data/Output/Ole.png', 'w'); | |
fwrite($fh, $result); | |
fclose($fh); | |
} | |
} | |
$oLEObject = new OLEObject(); | |
$oLEObject->getWorksheetOleObjectWithFormat(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class OLEObject { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postUpdateWorksheetOleObject() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Embeded_OleObject_Sample_Book1.xlsx"; | |
Utils::uploadFile($fileName); | |
Utils::uploadFile("Sample_Book2.xls"); | |
Utils::uploadFile("aspose-logo.png"); | |
$body = '{ | |
"OleObject": { | |
"Name" : "ole", | |
"UpperLeftRow" : "18", | |
"Top" : "100", | |
"UpperLeftColumn" : "18", | |
"Left" : "100", | |
"LowerRightRow" : "24", | |
"Bottom" : "0", | |
"LowerRightColumn" : "2", | |
"Right" : "0", | |
"Width" : "100", | |
"Height" : "100", | |
"X" : "64", | |
"Y" : "360", | |
"DisplayAsIcon" : "false", | |
"FileType" : "Unknown", | |
"IsAutoSize" : "false", | |
"IsLink" : "false", | |
"SourceFullName" : "Sample_Book2.xls", | |
"ImageSourceFullName" : "aspose-logo.png", | |
}}'; | |
$result = $this->cells->PostUpdateWorksheetOleObject($name=$fileName, $sheetName="Sheet1", $oleObjectIndex="0", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$oLEObject = new OLEObject(); | |
$oLEObject->postUpdateWorksheetOleObject(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class OLEObject { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetOleObject() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
Utils::uploadFile("Sample_Book2.xls"); | |
Utils::uploadFile("aspose-logo.png"); | |
$body = '{ | |
"ImageSourceFullName": "aspose-logo.png", | |
"SourceFullName": "Sample_Book2.xls", | |
"UpperLeftRow": 15, | |
"UpperLeftColumn": 5, | |
"Top": 10, | |
"Left": 10, | |
"Width": 400, | |
"Height": 400, | |
"IsAutoSize" : true | |
}'; | |
$result = $this->cells->PutWorksheetOleObject($name=$fileName, $sheetName="Sheet1", $upperLeftRow = null, $upperLeftColumn = null, $height = null, $width = null, $oleFile = null, $imageFile = null, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$oLEObject = new OLEObject(); | |
$oLEObject->putWorksheetOleObject(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Picture { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetPicture() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetPicture($name=$fileName, $sheetName="Sheet6", $pictureIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$picture = new Picture(); | |
$picture->deleteWorksheetPicture(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Picture { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorkSheetPictures() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorkSheetPictures($name=$fileName, $sheetName="Sheet6", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$picture = new Picture(); | |
$picture->deleteWorkSheetPictures(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Picture { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetPicture() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetPicture($name=$fileName, $sheetName="Sheet6", $pictureNumber="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$picture = new Picture(); | |
$picture->getWorksheetPicture(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Picture { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetPictures() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetPictures($name=$fileName, $sheetName="Sheet6", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$picture = new Picture(); | |
$picture->getWorksheetPictures(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Picture { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetPictureWithFormat() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetPictureWithFormat($name=$fileName, $sheetName="Sheet6", $pictureNumber="0", $format="png", $storage = null, $folder = null); | |
$fh = fopen(realpath(__DIR__ . '/../../..') . '/Data/Output/Picture.png', 'w'); | |
fwrite($fh, $result); | |
fclose($fh); | |
} | |
} | |
$picture = new Picture(); | |
$picture->getWorksheetPictureWithFormat(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Picture { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorkSheetPicture() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
Utils::uploadFile("aspose-cloud.png"); | |
$body = array("Name"=>"aspose-cloud.png", "AutoShapeType"=>"Picture", "Placement"=>"MoveAndSize", | |
"UpperLeftRow"=>5, "Top"=>100, "UpperLeftColumn"=>5, "Left"=>100); | |
$result = $this->cells->PostWorkSheetPicture($name=$fileName, $sheetName="Sheet6", $pictureIndex="0", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$picture = new Picture(); | |
$picture->postWorkSheetPicture(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Picture { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetAddPicture() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$file = realpath(__DIR__ . '/../../..') . '/Data/watermark.png'; | |
$result = $this->cells->PutWorksheetAddPicture($name=$fileName, $sheetName="Sheet6", $upperLeftRow = 5, $upperLeftColumn = 5, $lowerRightRow = 10, $lowerRightColumn = 10, $picturePath = "watermark.png", $storage = null, $folder = null, $file); | |
print_r($result); | |
} | |
} | |
$picture = new Picture(); | |
$picture->putWorksheetAddPicture(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class PivotTable { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetPivotTable() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Pivot_Table_Example.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetPivotTable($name=$fileName, $sheetName="Sheet2", $pivotTableIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$pivotTable = new PivotTable(); | |
$pivotTable->deleteWorksheetPivotTable(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class PivotTable { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetPivotTables() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Pivot_Table_Example.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetPivotTables($name=$fileName, $sheetName="Sheet2", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$pivotTable = new PivotTable(); | |
$pivotTable->deleteWorksheetPivotTables(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class PivotTable { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetPivotTable() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Pivot_Table_Example.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetPivotTable($name=$fileName, $sheetName="Sheet2", $pivottableIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$pivotTable = new PivotTable(); | |
$pivotTable->getWorksheetPivotTable(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class PivotTable { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetPivotTables() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Pivot_Table_Example.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetPivotTables($name=$fileName, $sheetName="Sheet2", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$pivotTable = new PivotTable(); | |
$pivotTable->getWorksheetPivotTables(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class PivotTable { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postPivotTableCellStyle() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Pivot_Table_Example.xls"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"Style": { | |
"IsGradient": "true", | |
"Font": { "IsBold": "true" } | |
} | |
}'; | |
$result = $this->cells->PostPivotTableCellStyle($name=$fileName, $sheetName="Sheet2", $pivotTableIndex="0", $column=1, $row=1, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$pivotTable = new PivotTable(); | |
$pivotTable->postPivotTableCellStyle(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class PivotTable { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postPivotTableStyle() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Pivot_Table_Example.xls"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"Style": { | |
"IsGradient": "true", | |
"Font": { "IsBold": "true" } | |
} | |
}'; | |
$result = $this->cells->PostPivotTableStyle($name=$fileName, $sheetName="Sheet2", $pivotTableIndex="0", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$pivotTable = new PivotTable(); | |
$pivotTable->postPivotTableStyle(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class PivotTable { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetPivotTable() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"Name": "MyPivot", | |
"SourceData": "A5:E10", | |
"DestCellName": "H20", | |
"UseSameSource": true, | |
"PivotFieldRows": [ | |
1 | |
], | |
"PivotFieldColumns": [ | |
1 | |
], | |
"PivotFieldData": [ | |
1 | |
] | |
}'; | |
$result = $this->cells->PutWorksheetPivotTable($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null, $sourceData = null, $destCellName = null, $tableName = null, $useSameSource = null, $body); | |
print_r($result); | |
} | |
} | |
$pivotTable = new PivotTable(); | |
$pivotTable->putWorksheetPivotTable(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetRow() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetRow($name=$fileName, $sheetName="Sheet1", $rowIndex=1, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->deleteWorksheetRow(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetRows() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetRows($name=$fileName, $sheetName="Sheet1", $startrow=2, $totalRows=10, $updateReference = true, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->deleteWorksheetRows(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetRow() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetRow($name=$fileName, $sheetName="Sheet1", $rowIndex="1", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->getWorksheetRow(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postAutofitWorkbookRows() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"AutoFitMergedCells": true, | |
"IgnoreHidden": true, | |
"OnlyAuto": true | |
}'; | |
$result = $this->cells->PostAutofitWorkbookRows($name=$fileName, $startRow = null, $endRow = null, $onlyAuto = null, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->postAutofitWorkbookRows(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postCopyWorksheetRows() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostCopyWorksheetRows($name=$fileName, $sheetName="Sheet1", $sourceRowIndex=5, $destinationRowIndex=7, $rowNumber=3, $worksheet = null, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->postCopyWorksheetRows(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postGroupWorksheetRows() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostGroupWorksheetRows($name=$fileName, $sheetName="Sheet1", $firstIndex=1, $lastIndex=5, $hide = null, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->postGroupWorksheetRows(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postHideWorksheetRows() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostHideWorksheetRows($name=$fileName, $sheetName="Sheet1", $startrow=1, $totalRows=5, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->postHideWorksheetRows(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postRowStyle() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"BackgroundColor": { | |
"A": "1", | |
"R": "245", | |
"G": "200", | |
"B": "178" | |
} | |
}'; | |
$result = $this->cells->PostRowStyle($name="myWorkbook.xlsx", $sheetName="Sheet1", $rowIndex=1, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->postRowStyle(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postUngroupWorksheetRows() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostUngroupWorksheetRows($name=$fileName, $sheetName="Sheet1", $firstIndex=1, $lastIndex=5, $isAll = true, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->postUngroupWorksheetRows(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postUnhideWorksheetRows() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostUnhideWorksheetRows($name=$fileName, $sheetName="Sheet1", $startrow=1, $totalRows=3, $height = 30.0, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->postUnhideWorksheetRows(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postUpdateWorksheetRow() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostUpdateWorksheetRow($name=$fileName, $sheetName="Sheet1", $rowIndex=1, $height=25.0, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->postUpdateWorksheetRow(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putInsertWorksheetRow() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PutInsertWorksheetRow($name=$fileName, $sheetName="Sheet1", $rowIndex=10, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->putInsertWorksheetRow(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Row { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putInsertWorksheetRows() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PutInsertWorksheetRows($name=$fileName, $sheetName="Sheet1", $startrow=10, $totalRows=10, $updateReference = true, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$row = new Row(); | |
$row->putInsertWorksheetRows(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Text { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkBookTextItems() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkBookTextItems($name=$fileName, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$text = new Text(); | |
$text->getWorkBookTextItems(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Text { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheetTextItems() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkSheetTextItems($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$text = new Text(); | |
$text->getWorkSheetTextItems(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Text { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorkbooksTextReplace() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostWorkbooksTextReplace($name=$fileName, $oldValue="OLE", $newValue="OleObject", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$text = new Text(); | |
$text->postWorkbooksTextReplace(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Text { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorkbooksTextSearch() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostWorkbooksTextSearch($name=$fileName, $text="OLE", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$text = new Text(); | |
$text->postWorkbooksTextSearch(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Text { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorkSheetTextSearch() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostWorkSheetTextSearch($name=$fileName, $sheetName="Sheet2", $text="OLE", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$text = new Text(); | |
$text->postWorkSheetTextSearch(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Text { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorsheetTextReplace() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostWorsheetTextReplace($name=$fileName, $sheetName="Sheet2", $oldValue="OLE", $newValue="Ole", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$text = new Text(); | |
$text->postWorsheetTextReplace(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once __DIR__ . '/vendor/autoload.php'; | |
use Aspose\Storage\StorageApi; | |
use Aspose\Storage\AsposeApp; | |
class Utils { | |
# Get App key and App SID from https://cloud.aspose.com | |
const appSID = "B01A15E5-1B83-4B9A-8EB3-0F2BFA6AC766"; | |
const apiKey = "da77c9f5da014d91faf2961ecec2de66"; | |
public static function uploadFile($fileName) { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$storage = new StorageApi(); | |
$file = realpath(__DIR__ . '/../..') . '/Data/' . $fileName; | |
$result = $storage->PutCreate($Path=$fileName, $versionId = null, $storage = null, $file); | |
} | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteDecryptDocument() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
//Utils::uploadFile($fileName); | |
$body = array("Password" => "123456"); | |
$result = $this->cells->DeleteDecryptDocument($name=$fileName, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->deleteDecryptDocument(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteDocumentUnProtectFromChanges() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteDocumentUnProtectFromChanges($name=$fileName, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->deleteDocumentUnProtectFromChanges(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteUnProtectDocument() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = array("Password" => "123456"); | |
$result = $this->cells->DeleteUnProtectDocument($name=$fileName, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->deleteUnProtectDocument(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getExtractBarcodes() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetExtractBarcodes($name=$fileName, $sheetName="Sheet1", $pictureNumber="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->getExtractBarcodes(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkBook() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkBook($name=$fileName, $password = null, $isAutoFit = null, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->getWorkBook(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkBookDefaultStyle() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkBookDefaultStyle($name=$fileName, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->getWorkBookDefaultStyle(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkBookName() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkBookName($name=$fileName, $nameName="TestRange", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->getWorkBookName(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkBookNames() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkBookNames($name=$fileName, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->getWorkBookNames(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkBookWithFormat() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkBookWithFormat($name=$fileName, $format="pdf", $password = null, $isAutoFit = null, $storage = null, $folder = null, $outPath = null); | |
$fh = fopen(realpath(__DIR__ . '/../../..') . '/Data/Output/Workbook.pdf', 'w'); | |
fwrite($fh, $result); | |
fclose($fh); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->getWorkBookWithFormat(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postColumnStyle() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"BackgroundColor": { | |
"A": "1", | |
"R": "245", | |
"G": "200", | |
"B": "178" | |
} | |
}'; | |
$result = $this->cells->PostColumnStyle($name=$fileName, $sheetName="Sheet1", $columnIndex=0, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postColumnStyle(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postCopyWorksheetColumns() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostCopyWorksheetColumns($name=$fileName, $sheetName="Sheet1", $sourceColumnIndex=2, $destinationColumnIndex=0, $columnNumber=4, $worksheet = null, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postCopyWorksheetColumns(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postDocumentSaveAs() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "SAASCELLS-157-6.xltx"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"CalculateFormula": true, | |
"CheckFontCompatibility": false, | |
"Compliance": "None", | |
"OnePagePerSheet": false, | |
"SaveFormat": "PDF" | |
}'; | |
$result = $this->cells->PostDocumentSaveAs($fileName, $newfilename = "SAASCELLS-157-6.pdf", $isAutoFitRows = null, $isAutoFitColumns = null, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postDocumentSaveAs(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postEncryptDocument() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = array("EncriptionType"=>"XOR", "KeyLength"=>"128", "Password"=>"123456"); | |
$result = $this->cells->PostEncryptDocument($name=$fileName, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postEncryptDocument(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postGroupWorksheetColumns() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostGroupWorksheetColumns($name=$fileName, $sheetName="Sheet3", $firstIndex=1, $lastIndex=5, $hide = null, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postGroupWorksheetColumns(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postImportDataCloudFile() { | |
$options = array('{"BatchData":null,"DestinationWorksheet":"Sheet1","IsInsert":false,"ImportDataType":"BatchData","Source":{"FileSourceType":1,"FilePath":"Batch_data_json.txt"}}', | |
'{"FirstRow":1,"FirstColumn":2,"IsVertical":true,"Data":null,"DestinationWorksheet":"Sheet1","IsInsert":true,"ImportDataType":"StringArray","Source":{"FileSourceType":1,"FilePath":"Array_string_json.txt"}}', | |
'{"FirstRow":1,"FirstColumn":2,"IsVertical":true,"Data":null,"DestinationWorksheet":"Sheet1","IsInsert":true,"ImportDataType":"IntArray","Source":{"FileSourceType":1,"FilePath":"Array_int_json.txt"}}', | |
'{"FirstRow":1,"FirstColumn":2,"IsVertical":true,"Data":null,"DestinationWorksheet":"Sheet1","IsInsert":true,"ImportDataType":"DoubleArray","Source":{"FileSourceType":1,"FilePath":"Array_double_json.txt"}}' | |
); | |
$dataFiles = array("Batch_data_json.txt", "Array_string_json.txt", "Array_int_json.txt", "Array_double_json.txt"); | |
foreach($options as $index=>$option) { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$dataFile = $dataFiles[$index]; | |
Utils::uploadFile($dataFile); | |
$body = $option; | |
$result = $this->cells->PostImportDataCloudFile($name, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postImportDataCloudFile(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postImportDataMultipartContent() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$xmlData = "<ImportBatchDataOption> | |
<DestinationWorksheet>Sheet1</DestinationWorksheet> | |
<IsInsert>false</IsInsert> | |
<ImportDataType>BatchData</ImportDataType> | |
<Source> | |
<FileSourceType>RequestFiles</FileSourceType> | |
<FilePath>Batch_data_xml_2.txt</FilePath> | |
</Source> | |
</ImportBatchDataOption>"; | |
$file = realpath(__DIR__ . '/../../..') . '/Data/Batch_data_xml_2.txt'; | |
$result = $this->cells->PostImportDataMultipartContent($name, $storage = null, $folder = null, $xmlData, $file); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postImportDataMultipartContent(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postProtectDocument() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = array("ProtectionType"=>"All", "Password"=>"abc"); | |
$result = $this->cells->PostProtectDocument($name=$fileName, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postProtectDocument(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postTaskDataMultipartContent() { | |
// Upload file to Aspose Cloud Storage | |
$name = "TaskBook.xlsx"; | |
Utils::uploadFile($name); | |
$xmlData = "<TaskData> | |
<Tasks> | |
<TaskDescription> | |
<TaskType>ImportData</TaskType> | |
<ImportDataTaskParameter> | |
<Workbook> | |
<FileSourceType>CloudFileSystem</FileSourceType> | |
<FilePath>TaskBook.xlsx</FilePath> | |
</Workbook> | |
<ImportBatchDataOption> | |
<DestinationWorksheet>Sheet1</DestinationWorksheet> | |
<IsInsert>true</IsInsert> | |
<Source> | |
<FileSourceType>RequestFiles</FileSourceType> | |
<FilePath>Batch_data_xml.txt</FilePath> | |
</Source> | |
</ImportBatchDataOption> | |
</ImportDataTaskParameter> | |
</TaskDescription> | |
<TaskDescription> | |
<TaskType>ImportData</TaskType> | |
<ImportDataTaskParameter> | |
<Workbook> | |
<FileSourceType>InMemoryFiles</FileSourceType> | |
<FilePath>TaskBook.xlsx</FilePath> | |
</Workbook> | |
<ImportBatchDataOption> | |
<DestinationWorksheet>Sheet2</DestinationWorksheet> | |
<IsInsert>true</IsInsert> | |
<Source> | |
<FileSourceType>RequestFiles</FileSourceType> | |
<FilePath>Batch_data_xml_2.txt</FilePath> | |
</Source> | |
</ImportBatchDataOption> | |
</ImportDataTaskParameter> | |
</TaskDescription> | |
<TaskDescription> | |
<TaskType>SaveResult</TaskType> | |
<SaveResultTaskParameter> | |
<ResultSource>InMemoryFiles</ResultSource> | |
<ResultDestination> | |
<DestinationType>CloudFileSystem</DestinationType> | |
<InputFile>TaskBook.xlsx</InputFile> | |
<OutputFile>ImpDataBook.xlsx</OutputFile> | |
</ResultDestination> | |
</SaveResultTaskParameter> | |
</TaskDescription> | |
</Tasks> | |
</TaskData>"; | |
$file1 = realpath(__DIR__ . '/../../../../..') . '/Data/Batch_data_xml.txt'; | |
$file2 = realpath(__DIR__ . '/../../../../..') . '/Data/Batch_data_xml_2.txt'; | |
$result = $this->cells->PostTaskDataMultipartContent($storage = null, $folder = null, $xmlData, $file1, $file2); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postTaskDataMultipartContent(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorkbookCalculateFormula() { | |
// Upload file to Aspose Cloud Storage | |
$name = "Book1.xlsx"; | |
Utils::uploadFile($name); | |
$options = '{ | |
"CalcStackSize": "1" | |
}'; | |
$ignore_error = "true"; | |
$result = $this->cells->postWorkbookCalculateFormula($name, $options, $ignore_error, $storage=null, $folder=null); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postWorkbookCalculateFormula(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorkbookGetSmartMarkerResult() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_SmartMarker.xlsx"; | |
Utils::uploadFile($fileName); | |
$file = realpath(__DIR__ . '/../../..') . '/Data/Sample_SmartMarker_Data.xml'; | |
$result = $this->cells->PostWorkbookGetSmartMarkerResult($name=$fileName, $xmlFile = null, $storage = null, $folder = null, $outPath = "smartmarker1.xlsx", $file); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postWorkbookGetSmartMarkerResult(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorkbooksMerge() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Book1.xlsx"; | |
Utils::uploadFile($fileName); | |
$mergeWith = "Sample_Book2.xls"; | |
Utils::uploadFile($mergeWith); | |
$result = $this->cells->PostWorkbooksMerge($name=$fileName, $mergeWith=$mergeWith, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postWorkbooksMerge(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorkbookSplit() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostWorkbookSplit($name=$fileName, $format = "png", $from = 1, $to = 1, $horizontalResolution = null, $verticalResolution = null, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->postWorkbookSplit(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putConvertWorkBook() { | |
$file = realpath(__DIR__ . '/../../..') . '/Data/Book1.xlsx'; | |
$result = $this->cells->PutConvertWorkBook($format = "pdf", $password = null, $outPath = null, $file); | |
$fh = fopen(realpath(__DIR__ . '/../../..'). '/Data/Book1_out.pdf', 'w'); | |
fwrite($fh, $result); | |
fclose($fh); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->putConvertWorkBook(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putConvertWorkBookMultipart() { | |
$file = realpath(__DIR__ . '/../../..') . '/Data/Book1.xlsx'; | |
$jsonData = '{"CalculateFormula": true,"CheckFontCompatibility": false,"Compliance": "None","OnePagePerSheet": false,"SaveFormat": "PDF"}'; | |
$result = $this->cells->PutConvertWorkBookMultipart($format = "pdf", $password = null, $outPath = "Book1.pdf", $jsonData, $file); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->putConvertWorkBookMultipart(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putDocumentProtectFromChanges() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$body = array("ProtectionType"=>"all", "Password"=>"aspose"); | |
$result = $this->cells->PutDocumentProtectFromChanges($name=$fileName, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->putDocumentProtectFromChanges(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Workbook { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorkbookCreate() { | |
$file = realpath(__DIR__ . '/../../..') . '/Data/test_convert_cell.xlsx'; | |
$result = $this->cells->PutWorkbookCreate($name="new_workbook.xlsx", $templateFile = null, $dataFile = null, $storage = null, $folder = null, $file); | |
print_r($result); | |
} | |
} | |
$workbook = new Workbook(); | |
$workbook->putWorkbookCreate(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteUnprotectWorksheet() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$body = array("ProtectionType" => "None"); | |
$result = $this->cells->DeleteUnprotectWorksheet($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->deleteUnprotectWorksheet(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheet() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheet($name=$fileName, $sheetName="Sheet3", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->deleteWorksheet(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorkSheetBackground() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "WorkSheetBackground_Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorkSheetBackground($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->deleteWorkSheetBackground(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetColumns() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetColumns($name=$fileName, $sheetName="Sheet1", $columnIndex="0", $columns="0", $updateReference=true, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->deleteWorksheetColumns(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorkSheetComment() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorkSheetComment($name=$fileName, $sheetName="Sheet1", $cellName="D19", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->deleteWorkSheetComment(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorkSheetComments() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "test_cells.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorkSheetComments($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->deleteWorkSheetComments(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorksheetFreezePanes() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorksheetFreezePanes($name=$fileName, $sheetName="Sheet1", $row=1, $column=1, $freezedRows=1, $freezedColumns=1, $folder = null, $storage = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->deleteWorksheetFreezePanes(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function deleteWorkSheetValidation() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->DeleteWorkSheetValidation($name=$fileName, $sheetName="Sheet3", $validationIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->deleteWorkSheetValidation(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheet() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkSheet($name=$fileName, $sheetName="Sheet1", $verticalResolution = null, $horizontalResolution = null, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorkSheet(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetAutoshape() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetAutoshape($name=$fileName, $sheetName="Sheet4", $autoshapeNumber=1, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorksheetAutoshape(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetAutoshapes() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetAutoshapes($name=$fileName, $sheetName="Sheet4", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorksheetAutoshapes(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheetCalculateFormula() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkSheetCalculateFormula($name=$fileName, $sheetName="Sheet2", $formula="SUM(A5:A10)", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorkSheetCalculateFormula(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetColumn() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetColumn($name=$fileName, $sheetName="Sheet1", $columnIndex=1, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorksheetColumn(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetColumns() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetColumns($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorksheetColumns(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheetComment() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkSheetComment($name=$fileName, $sheetName="Sheet2", $cellName="A4", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorkSheetComment(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheetComments() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkSheetComments($name=$fileName, $sheetName="Sheet2", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorkSheetComments(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorksheetRows() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorksheetRows($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorksheetRows(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheets() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkSheets($name=$fileName, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorkSheets(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheetValidation() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkSheetValidation($name=$fileName, $sheetName="Sheet3", $validationIndex="0", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorkSheetValidation(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheetValidations() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkSheetValidations($name=$fileName, $sheetName="Sheet3", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorkSheetValidations(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function getWorkSheetWithFormat() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->GetWorkSheetWithFormat($name=$fileName, $sheetName="Sheet1", $format="gif", $verticalResolution = null, $horizontalResolution = null, $storage = null, $folder = null); | |
$fh = fopen(realpath(__DIR__ . '/../../..') . '/Data/Output/Sheet1.png', 'w'); | |
fwrite($fh, $result); | |
fclose($fh); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->getWorkSheetWithFormat(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postAutofitWorksheetRows() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"AutoFitMergedCells": true, | |
"IgnoreHidden": true, | |
"OnlyAuto": true | |
}'; | |
$result = $this->cells->PostAutofitWorksheetRows($name=$fileName, $sheetName="Sheet1", $startRow = 1, $endRow = 10, $onlyAuto = true, $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postAutofitWorksheetRows(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postCopyWorksheet() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Book1.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"CopyOptions": { | |
"CopyNames": "true" | |
} | |
}'; | |
$result = $this->cells->PostCopyWorksheet($name=$fileName, $sheetName="NewSheet", $sourceSheet="Sheet3", $folder = null, $storage = null, $body); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postCopyWorksheet(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postHideWorksheetColumns() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostHideWorksheetColumns($name=$fileName, $sheetName="Sheet1", $startColumn=0, $totalColumns=1, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postHideWorksheetColumns(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postMoveWorksheet() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"DestinationWorksheet": "Sheet5", | |
"Position": "after" | |
}'; | |
$result = $this->cells->PostMoveWorksheet($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postMoveWorksheet(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postRenameWorksheet() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostRenameWorksheet($name=$fileName, $sheetName="Sheet1", $newname="newSheet", $folder = null, $storage = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postRenameWorksheet(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postSetWorksheetColumnWidth() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostSetWorksheetColumnWidth($name=$fileName, $sheetName="Sheet1", $columnIndex=3, $width=25.0, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postSetWorksheetColumnWidth(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postUngroupWorksheetColumns() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostUngroupWorksheetColumns($name=$fileName, $sheetName="Sheet1", $firstIndex=0, $lastIndex=2, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postUngroupWorksheetColumns(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postUnhideWorksheetColumns() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostUnhideWorksheetColumns($name=$fileName, $sheetName="Sheet1", $startcolumn=0, $totalColumns=2, $width = null, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postUnhideWorksheetColumns(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postUpdateWorksheetProperty() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = array("Type"=>"Worksheet", "Name"=>"sheet1", "IsGridlinesVisible"=>"false"); | |
$result = $this->cells->PostUpdateWorksheetProperty($name=$fileName, $sheetName="Sheet1", $folder = null, $storage = null, $body); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postUpdateWorksheetProperty(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postUpdateWorksheetRangeStyle() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"Font": { | |
"DoubleSize": 20.0, | |
"IsBold": true, | |
"IsItalic": true, | |
"IsStrikeout": true, | |
"Size": 15 | |
}, | |
"ShrinkToFit": true | |
}'; | |
$result = $this->cells->PostUpdateWorksheetRangeStyle($name=$fileName, $sheetName="Sheet1", $range="A1:C4", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postUpdateWorksheetRangeStyle(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorkSheetComment() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"Note": "Update comments", | |
"AutoSize": true | |
}'; | |
$result = $this->cells->PostWorkSheetComment($name=$fileName, $sheetName="Sheet2", $cellName="A4", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postWorkSheetComment(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorksheetRangeSort() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = array( | |
"CaseSensitive" => true, | |
"HasHeaders" => true, | |
'SortLeftToRight'=> false, | |
"KeyList" => array( | |
array( | |
"Key"=> 4, | |
"SortOrder"=> "descending" | |
), | |
array( | |
"Key"=> 5, | |
"SortOrder"=> "descending" | |
) | |
) | |
); | |
$result = $this->cells->PostWorksheetRangeSort($name=$fileName, $sheetName="Sheet1", $cellArea="A1:C4", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postWorksheetRangeSort(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function postWorkSheetValidation() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PostWorkSheetValidation($name=$fileName, $sheetName="Sheet3", $validationIndex = 0, $storage = null, $folder = null, $file); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->postWorkSheetValidation(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putAddNewWorksheet() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PutAddNewWorksheet($name=$fileName, $sheetName="Tasks", $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->putAddNewWorksheet(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putChangeVisibilityWorksheet() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "Sample_Test_Book.xls"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PutChangeVisibilityWorksheet($name=$fileName, $sheetName="Sheet1", $isVisible=false, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->putChangeVisibilityWorksheet(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putInsertWorksheetColumns() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PutInsertWorksheetColumns($name=$fileName, $sheetName="Sheet1", $columnIndex=5, $columns=3, $updateReference = true, $storage = null, $folder = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->putInsertWorksheetColumns(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorkSheetBackground() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$file = realpath(__DIR__ . '/../../..') . '/Data/Creative.jpg'; | |
$result = $this->cells->PutWorkSheetBackground($name=$fileName, $sheetName="Sheet1", $storage = null, $folder = null, $file); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->putWorkSheetBackground(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorkSheetComment() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$body = '{ | |
"CellName": "D18", | |
"HtmlNote": "<Font Style=\"FONT-WEIGHT: bold;FONT-FAMILY: Calibri;FONT-SIZE: 9pt;COLOR: 000000;TEXT-ALIGN: left;\">Sohail:</Font><Font Style=\"FONT-FAMILY: Calibri;FONT-SIZE: 9pt;COLOR: 000000;TEXT-ALIGN: left;\">\nShopping</Font>" | |
}'; | |
$result = $this->cells->PutWorkSheetComment($name=$fileName, $sheetName="Sheet1", $cellName="D18", $storage = null, $folder = null, $body); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->putWorkSheetComment(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorksheetFreezePanes() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkbook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PutWorksheetFreezePanes($name=$fileName, $sheetName="Sheet1", $row=1, $column=1, $freezedRows=1, $freezedColumns=1, $folder = null, $storage = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->putWorksheetFreezePanes(); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
<?php | |
require_once realpath(__DIR__ . '/..') . '/vendor/autoload.php'; | |
require_once realpath(__DIR__ . '/..') . '/Utils.php'; | |
use Aspose\Cells\CellsApi; | |
use Aspose\Cells\AsposeApp; | |
class Worksheet { | |
public $cells; | |
public function __construct() { | |
AsposeApp::$appSID = Utils::appSID; | |
AsposeApp::$apiKey = Utils::apiKey; | |
$this->cells = new CellsApi(); | |
} | |
public function putWorkSheetValidation() { | |
// Upload file to Aspose Cloud Storage | |
$fileName = "myWorkBook.xlsx"; | |
Utils::uploadFile($fileName); | |
$result = $this->cells->PutWorkSheetValidation($name=$fileName, $sheetName="Sheet1", $range="A1:C10", $storage = null, $folder = null, $file = null); | |
print_r($result); | |
} | |
} | |
$worksheet = new Worksheet(); | |
$worksheet->putWorkSheetValidation(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment