Skip to content

Commit 67d7997

Browse files
committed
Add features for formula error check and external reference checks in Excel files.
1 parent 2959f14 commit 67d7997

File tree

706 files changed

+5677
-2189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

706 files changed

+5677
-2189
lines changed

.phpunit.result.cache

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
require_once('vendor\autoload.php');
3+
use \Aspose\Cells\Cloud\Api\CellsApi;
4+
use \Aspose\Cells\Cloud\Request\PostBatchSplitRequest;
5+
6+
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
7+
8+
$remoteFolder = "TestData/In";
9+
10+
$localBook1 = "Book1.xlsx";
11+
$remoteBook1 = "Book1.xlsx";
12+
$localMyDoc = "myDocument.xlsx";
13+
$remoteMyDoc = "myDocument.xlsx";
14+
15+
$batchSplitRequestMatchCondition = new \Aspose\Cells\Cloud\Model\MatchConditionRequest();
16+
$batchSplitRequestMatchCondition->setRegexPattern("(^Book)(.+)(xlsx$)" );
17+
$batchSplitRequest = new \Aspose\Cells\Cloud\Model\BatchSplitRequest();
18+
$batchSplitRequest->setSourceFolder($remoteFolder );
19+
$batchSplitRequest->setFormat("Pdf" );
20+
$batchSplitRequest->setOutFolder("OutResult" );
21+
$batchSplitRequest->setMatchCondition($batchSplitRequestMatchCondition );
22+
CellsApiTestBase::ready( $this->instance,$localBook1 ,$remoteFolder . "/" . $remoteBook1 , "");
23+
CellsApiTestBase::ready( $this->instance,$localMyDoc ,$remoteFolder . "/" . $remoteMyDoc , "");
24+
25+
$request = new PostBatchSplitRequest();
26+
$request->setBatchSplitRequest( $batchSplitRequest);
27+
$$cellsApi->postBatchSplit($request);

Examples/Example_PostClearObjects.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
77

88
$book1Xlsx = "Book1.xlsx";
9-
$dataSourceXlsx = "datasource.xlsx";
109

1110
$objecttype = "chart";
1211

1312
$mapFiles = array ();
1413
$mapFiles[$book1Xlsx] = CellsApiTestBase::getfullfilename($book1Xlsx);
15-
$mapFiles[$dataSourceXlsx] = CellsApiTestBase::getfullfilename($dataSourceXlsx);
1614

1715
$request = new PostClearObjectsRequest();
1816
$request->setFile( $mapFiles);

Examples/Example_PostCompress.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55

66
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
77

8-
$assemblyTestXlsx = "assemblytest.xlsx";
98
$dataSourceXlsx = "datasource.xlsx";
109

1110
$compressLevel = 50;
1211

1312
$mapFiles = array ();
14-
$mapFiles[$assemblyTestXlsx] = CellsApiTestBase::getfullfilename($assemblyTestXlsx);
1513
$mapFiles[$dataSourceXlsx] = CellsApiTestBase::getfullfilename($dataSourceXlsx);
1614

1715
$request = new PostCompressRequest();

Examples/Example_PostExport.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@
55

66
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
77

8-
$assemblyTestXlsx = "assemblytest.xlsx";
98
$book1Xlsx = "Book1.xlsx";
109

1110
$format = "csv";
1211
$objectType = "workbook";
1312

1413
$mapFiles = array ();
15-
$mapFiles[$assemblyTestXlsx] = CellsApiTestBase::getfullfilename($assemblyTestXlsx);
1614
$mapFiles[$book1Xlsx] = CellsApiTestBase::getfullfilename($book1Xlsx);
1715

1816
$request = new PostExportRequest();

Examples/Example_PostLock.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
require_once('vendor\autoload.php');
3+
use \Aspose\Cells\Cloud\Api\CellsApi;
4+
use \Aspose\Cells\Cloud\Request\PostLockRequest;
5+
6+
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
7+
8+
$needlockXlsx = "needlock.xlsx";
9+
10+
$mapFiles = array ();
11+
$mapFiles[$needlockXlsx] = CellsApiTestBase::getfullfilename($needlockXlsx);
12+
13+
$request = new PostLockRequest();
14+
$request->setFile( $mapFiles);
15+
$request->setPassword( "123456");
16+
$$cellsApi->postLock($request);

Examples/Example_PostProtect.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@
66
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
77

88
$assemblyTestXlsx = "assemblytest.xlsx";
9-
$dataSourceXlsx = "datasource.xlsx";
109

1110
$mapFiles = array ();
1211
$protectWorkbookRequest = new \Aspose\Cells\Cloud\Model\ProtectWorkbookRequest();
1312
$protectWorkbookRequest->setAwaysOpenReadOnly('true' );
1413
$protectWorkbookRequest->setEncryptWithPassword("123456" );
1514
$mapFiles[$assemblyTestXlsx] = CellsApiTestBase::getfullfilename($assemblyTestXlsx);
16-
$mapFiles[$dataSourceXlsx] = CellsApiTestBase::getfullfilename($dataSourceXlsx);
1715

1816
$request = new PostProtectRequest();
1917
$request->setFile( $mapFiles);

Examples/Example_PostReplace.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55

66
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
77

8-
$assemblyTestXlsx = "assemblytest.xlsx";
98
$dataSourceXlsx = "datasource.xlsx";
109

1110
$mapFiles = array ();
12-
$mapFiles[$assemblyTestXlsx] = CellsApiTestBase::getfullfilename($assemblyTestXlsx);
1311
$mapFiles[$dataSourceXlsx] = CellsApiTestBase::getfullfilename($dataSourceXlsx);
1412

1513
$request = new PostReplaceRequest();

Examples/Example_PostSearch.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55

66
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
77

8-
$assemblyTestXlsx = "assemblytest.xlsx";
98
$dataSourceXlsx = "datasource.xlsx";
109

1110
$mapFiles = array ();
12-
$mapFiles[$assemblyTestXlsx] = CellsApiTestBase::getfullfilename($assemblyTestXlsx);
1311
$mapFiles[$dataSourceXlsx] = CellsApiTestBase::getfullfilename($dataSourceXlsx);
1412

1513
$request = new PostSearchRequest();

Examples/Example_PostSplit.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@
55

66
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
77

8-
$assemblyTestXlsx = "assemblytest.xlsx";
9-
$dataSourceXlsx = "datasource.xlsx";
8+
$book1Xlsx = "Book1.xlsx";
109

1110
$outFormat = "csv";
1211

1312
$mapFiles = array ();
14-
$mapFiles[$assemblyTestXlsx] = CellsApiTestBase::getfullfilename($assemblyTestXlsx);
15-
$mapFiles[$dataSourceXlsx] = CellsApiTestBase::getfullfilename($dataSourceXlsx);
13+
$mapFiles[$book1Xlsx] = CellsApiTestBase::getfullfilename($book1Xlsx);
1614

1715
$request = new PostSplitRequest();
1816
$request->setFile( $mapFiles);

0 commit comments

Comments
 (0)