Skip to content

Commit e6e8741

Browse files
committed
Add features for formula error check and external reference checks in Excel files.
1 parent 222c8bb commit e6e8741

File tree

62 files changed

+1704
-483
lines changed

Some content is hidden

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

62 files changed

+1704
-483
lines changed

Examples/Example_PostBatchSplit.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
require 'openssl'
2+
require 'bundler'
3+
require 'aspose_cells_cloud'
4+
5+
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
6+
7+
remote_folder = 'TestData/In'
8+
9+
local_book1 = 'Book1.xlsx'
10+
remote_book1 = 'Book1.xlsx'
11+
local_my_doc = 'myDocument.xlsx'
12+
remote_my_doc = 'myDocument.xlsx'
13+
14+
15+
mapFiles = { }
16+
mapFiles[local_book1] = ::File.open(File.expand_path("TestData/"+local_book1),"r")
17+
mapFiles[local_my_doc] = ::File.open(File.expand_path("TestData/"+local_my_doc),"r")
18+
19+
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
20+
@instance.upload_file(uploadrequest)
21+
batchSplitRequestMatchCondition = AsposeCellsCloud::MatchConditionRequest.new(:RegexPattern=>'(^Book)(.+)(xlsx$)' );
22+
batchSplitRequest = AsposeCellsCloud::BatchSplitRequest.new(:SourceFolder=>remote_folder ,:Format=>'Pdf' ,:OutFolder=>'OutResult' ,:MatchCondition=>batchSplitRequestMatchCondition );
23+
request = AsposeCellsCloud::PostBatchSplitRequest.new(:batchSplitRequest=>batchSplitRequest);
24+
@instance.post_batch_split(request);

Examples/Example_PostClearObjects.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
66

77
book1_xlsx = 'Book1.xlsx'
8-
data_source_xlsx = 'datasource.xlsx'
98

109
objecttype = "chart"
1110

1211

1312
mapFiles = { }
1413
mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
15-
mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
1614
request = AsposeCellsCloud::PostClearObjectsRequest.new(:File=>mapFiles,:objecttype=>objecttype);
1715
@instance.post_clear_objects(request);

Examples/Example_PostCompress.rb

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

55
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
66

7-
assembly_test_xlsx = 'assemblytest.xlsx'
87
data_source_xlsx = 'datasource.xlsx'
98

109
compress_level = 50
1110

1211

1312
mapFiles = { }
14-
mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
1513
mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
1614
request = AsposeCellsCloud::PostCompressRequest.new(:File=>mapFiles,:CompressLevel=>compress_level);
1715
@instance.post_compress(request);

Examples/Example_PostExport.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44

55
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
66

7-
assembly_test_xlsx = 'assemblytest.xlsx'
87
book1_xlsx = 'Book1.xlsx'
98

109
format = "csv"
1110
object_type = "workbook"
1211

1312

1413
mapFiles = { }
15-
mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
1614
mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
1715
request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
1816
@instance.post_export(request);

Examples/Example_PostLock.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require 'openssl'
2+
require 'bundler'
3+
require 'aspose_cells_cloud'
4+
5+
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
6+
7+
needlock_xlsx = 'needlock.xlsx'
8+
9+
10+
mapFiles = { }
11+
mapFiles[needlock_xlsx]= ::File.open(File.expand_path("TestData/"+needlock_xlsx),"r")
12+
request = AsposeCellsCloud::PostLockRequest.new(:File=>mapFiles,:password=>'123456');
13+
@instance.post_lock(request);

Examples/Example_PostProtect.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
66

77
assembly_test_xlsx = 'assemblytest.xlsx'
8-
data_source_xlsx = 'datasource.xlsx'
98

109

1110
mapFiles = { }
1211
protectWorkbookRequest = AsposeCellsCloud::ProtectWorkbookRequest.new(:AwaysOpenReadOnly=>true ,:EncryptWithPassword=>'123456' );
1312
mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
14-
mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
1513
request = AsposeCellsCloud::PostProtectRequest.new(:File=>mapFiles,:protectWorkbookRequest=>protectWorkbookRequest,:password=>'123456');
1614
@instance.post_protect(request);

Examples/Example_PostReplace.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
66

7-
assembly_test_xlsx = 'assemblytest.xlsx'
87
data_source_xlsx = 'datasource.xlsx'
98

109

1110
mapFiles = { }
12-
mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
1311
mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
1412
request = AsposeCellsCloud::PostReplaceRequest.new(:File=>mapFiles,:text=>'12',:newtext=>'newtext');
1513
@instance.post_replace(request);

Examples/Example_PostSearch.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
66

7-
assembly_test_xlsx = 'assemblytest.xlsx'
87
data_source_xlsx = 'datasource.xlsx'
98

109

1110
mapFiles = { }
12-
mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
1311
mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
1412
request = AsposeCellsCloud::PostSearchRequest.new(:File=>mapFiles,:text=>'12');
1513
@instance.post_search(request);

Examples/Example_PostSplit.rb

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

55
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
66

7-
assembly_test_xlsx = 'assemblytest.xlsx'
8-
data_source_xlsx = 'datasource.xlsx'
7+
book1_xlsx = 'Book1.xlsx'
98

109
out_format = "csv"
1110

1211

1312
mapFiles = { }
14-
mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
15-
mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
13+
mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
1614
request = AsposeCellsCloud::PostSplitRequest.new(:File=>mapFiles,:outFormat=>out_format);
1715
@instance.post_split(request);

Examples/Example_PostWatermark.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
66

7-
assembly_test_xlsx = 'assemblytest.xlsx'
87
data_source_xlsx = 'datasource.xlsx'
98

109

1110
mapFiles = { }
12-
mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
1311
mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
1412
request = AsposeCellsCloud::PostWatermarkRequest.new(:File=>mapFiles,:text=>'aspose.cells cloud sdk',:color=>'#773322');
1513
@instance.post_watermark(request);

0 commit comments

Comments
 (0)