Skip to content

Commit 576cb70

Browse files
Updated examples for Aspose.Cells Cloud 19.2.1
1 parent fbf256a commit 576cb70

File tree

64 files changed

+1345
-0
lines changed

Some content is hidden

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

64 files changed

+1345
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const { CellsWorkbookApi, CellsWorkbook_PostImportDataRequest,ImportIntArrayOption } = require("asposecellscloud");
2+
3+
AppSid = "78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9"
4+
AppKey = "b125f13bf6b76ed81ee990142d841195"
5+
6+
cellsWorkbookApi = new CellsWorkbookApi(AppSid, AppKey);
7+
filename = "Book1.xlsx"
8+
9+
10+
var req = new CellsWorkbook_PostImportDataRequest();
11+
req.name = filename;
12+
req.folder = "";
13+
var data = new ImportIntArrayOption();
14+
data.destinationWorksheet = "Sheet1";
15+
data.firstColumn = 1;
16+
data.firstRow = 3;
17+
data.importDataType = "IntArray";
18+
data.isVertical = true;
19+
data.data = [ 1, 2, 3, 4 ];
20+
req.importdata = data;
21+
22+
return cellsWorkbookApi.cellsWorkbookPostImportData(req)
23+
.then((result) => {
24+
console.log(result)
25+
});
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
var range = new Range();
2+
const { CellsWorkbookApi, CellsWorkbook_DeleteDecryptDocumentRequest,WorkbookEncryptionRequest } = require("asposecellscloud");
3+
4+
AppSid = "78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9"
5+
AppKey = "b125f13bf6b76ed81ee990142d841195"
6+
7+
cellsWorkbookApi = new CellsWorkbookApi(AppSid, AppKey);
8+
filename = "Book1.xlsx"
9+
10+
11+
12+
var req = new CellsWorkbook_DeleteDecryptDocumentRequest();
13+
req.name = filename;
14+
var encryption = new WorkbookEncryptionRequest();
15+
encryption.password = "123456";
16+
encryption.keyLength = 128;
17+
encryption.encryptionType = "XOR";
18+
req.encryption = encryption;
19+
req.folder = "Temp";
20+
21+
cellsWorkbookApi.cellsWorkbookDeleteDecryptDocument(req)
22+
.then((result) => {
23+
console.log(result)
24+
});
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
var range = new Range();
2+
const { CellsWorkbookApi, CellsWorkbook_DeleteDocumentUnprotectFromChangesRequest } = require("asposecellscloud");
3+
4+
AppSid = "78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9"
5+
AppKey = "b125f13bf6b76ed81ee990142d841195"
6+
7+
cellsWorkbookApi = new CellsWorkbookApi(AppSid, AppKey);
8+
filename = "Book1.xlsx"
9+
10+
11+
var req = new CellsWorkbook_DeleteDocumentUnprotectFromChangesRequest();
12+
req.name = filename;
13+
req.folder = "";
14+
15+
cellsWorkbookApi.cellsWorkbookDeleteDocumentUnprotectFromChanges(req)
16+
.then((result) => {
17+
console.log(result)
18+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
var range = new Range();
2+
const { CellsWorkbookApi, CellsWorkbook_DeleteUnprotectDocumentRequest,WorkbookProtectionRequest } = require("asposecellscloud");
3+
4+
AppSid = "78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9"
5+
AppKey = "b125f13bf6b76ed81ee990142d841195"
6+
7+
cellsWorkbookApi = new CellsWorkbookApi(AppSid, AppKey);
8+
filename = "Book1.xlsx"
9+
10+
var req = new CellsWorkbook_DeleteUnprotectDocumentRequest();
11+
req.name = filename;
12+
var protection = new WorkbookProtectionRequest();
13+
protection.password = "123";
14+
protection.protectionType = "All";
15+
req.protection = protection;
16+
req.folder = "";
17+
18+
cellsWorkbookApi.cellsWorkbookDeleteUnprotectDocument(req)
19+
.then((result) => {
20+
console.log(result)
21+
});
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
var range = new Range();
2+
const { CellsWorkbookApi, CellsWorkbook_DeleteWorkbookNameRequest } = require("asposecellscloud");
3+
4+
AppSid = "78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9"
5+
AppKey = "b125f13bf6b76ed81ee990142d841195"
6+
7+
cellsWorkbookApi = new CellsWorkbookApi(AppSid, AppKey);
8+
filename = "Book1.xlsx"
9+
10+
11+
var req = new CellsWorkbook_DeleteWorkbookNameRequest();
12+
req.name = filename;
13+
req.nameName = "Name_2";
14+
req.folder = "";
15+
16+
return cellsWorkbookApi.cellsWorkbookDeleteWorkbookName(req)
17+
.then((result) => {
18+
console.log(result)
19+
});
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
var range = new Range();
2+
const { CellsWorkbookApi, CellsWorkbook_DeleteWorkbookNamesRequest } = require("asposecellscloud");
3+
4+
AppSid = "78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9"
5+
AppKey = "b125f13bf6b76ed81ee990142d841195"
6+
7+
cellsWorkbookApi = new CellsWorkbookApi(AppSid, AppKey);
8+
filename = "Book1.xlsx"
9+
10+
11+
var req = new CellsWorkbook_DeleteWorkbookNamesRequest();
12+
req.name = filename;
13+
req.folder = "";
14+
15+
cellsWorkbookApi.cellsWorkbookDeleteWorkbookNames(req)
16+
.then((result) => {
17+
console.log(result)
18+
});
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
var range = new Range();
2+
const { CellsWorkbookApi, CellsWorkbook_GetWorkbookRequest } = require("asposecellscloud");
3+
4+
AppSid = "78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9"
5+
AppKey = "b125f13bf6b76ed81ee990142d841195"
6+
7+
cellsWorkbookApi = new CellsWorkbookApi(AppSid, AppKey);
8+
filename = "Book1.xlsx"
9+
10+
11+
var req = new CellsWorkbook_GetWorkbookRequest();
12+
req.name = filename;
13+
req.password = null;
14+
req.isAutoFit = true;
15+
req.folder = "";
16+
17+
cellsWorkbookApi.cellsWorkbookGetWorkbook(req)
18+
.then((result) => {
19+
console.log(result)
20+
});
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
var range = new Range();
2+
const { CellsWorkbookApi, CellsWorkbook_GetWorkbookDefaultStyleRequest } = require("asposecellscloud");
3+
4+
AppSid = "78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9"
5+
AppKey = "b125f13bf6b76ed81ee990142d841195"
6+
7+
cellsWorkbookApi = new CellsWorkbookApi(AppSid, AppKey);
8+
filename = "Book1.xlsx"
9+
10+
11+
var req = new CellsWorkbook_GetWorkbookDefaultStyleRequest();
12+
req.name = filename;
13+
req.folder = "";
14+
15+
return cellsWorkbookApi.cellsWorkbookGetWorkbookDefaultStyle(req)
16+
.then((result) => {
17+
console.log(result)
18+
});
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
var range = new Range();
2+
const { CellsWorkbookApi, CellsWorkbook_GetWorkbookNameRequest } = require("asposecellscloud");
3+
4+
AppSid = "78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9"
5+
AppKey = "b125f13bf6b76ed81ee990142d841195"
6+
7+
cellsWorkbookApi = new CellsWorkbookApi(AppSid, AppKey);
8+
filename = "Book1.xlsx"
9+
10+
11+
var req = new CellsWorkbook_GetWorkbookNameRequest();
12+
req.name = filename;
13+
req.nameName = "Name_2";
14+
req.folder = "";
15+
16+
return cellsWorkbookApi.cellsWorkbookGetWorkbookName(req)
17+
.then((result) => {
18+
console.log(result)
19+
});
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
var range = new Range();
2+
const { CellsWorkbookApi, CellsWorkbook_GetWorkbookNameValueRequest } = require("asposecellscloud");
3+
4+
AppSid = "78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9"
5+
AppKey = "b125f13bf6b76ed81ee990142d841195"
6+
7+
cellsWorkbookApi = new CellsWorkbookApi(AppSid, AppKey);
8+
filename = "Book1.xlsx"
9+
10+
11+
var req = new CellsWorkbook_GetWorkbookNameValueRequest();
12+
req.name = filename;
13+
req.nameName = "Name_2";
14+
req.folder = "";
15+
16+
return cellsWorkbookApi.cellsWorkbookGetWorkbookNameValue(req)
17+
.then((result) => {
18+
console.log(result)
19+
});

0 commit comments

Comments
 (0)