Skip to content

Instantly share code, notes, and snippets.

@aspose-cells
Last active September 8, 2017 08:54
Show Gist options
  • Save aspose-cells/a85d029d5a3d47e9d542dd267ae67cdc to your computer and use it in GitHub Desktop.
Save aspose-cells/a85d029d5a3d47e9d542dd267ae67cdc to your computer and use it in GitHub Desktop.
This gist contains Perl code snippets for Aspose.Cells for Cloud
Aspose.Cells-for-Cloud-Perl
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::Font;
use AsposeCellsCloud::Object::FontSetting;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
my $cellName = "A1";
my $type = "string";
my $value = "121211212112";
my @font = AsposeCellsCloud::Object::Font->new( 'IsBold' => 'True', 'Size' => 24);
my @fontSetting = AsposeCellsCloud::Object::FontSetting->new( 'Length' => 5, 'StartIndex' => 0, 'Font' => @font);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to set cell value of worksheet and apply rich text formatting
$response = $cellsApi->PostWorksheetCellSetValue(name=> $name, sheetName=>$sheetName, cellName=>$cellName, type=>$type, value=>$value);
if($response->{'Status'} eq 'OK'){
$response = $cellsApi->PostCellTextFormatting(name=> $name, sheetName=>$sheetName, cellName=>$cellName, body=>@fontSetting);
print("\nApply Rich Text Formatting to a Cell, Done!");
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::CalculationOptions;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
my $cellName = "A1";
my $formula = "NOW()";
my @options = AsposeCellsCloud::Object::CalculationOptions->new( 'CalcStackSize' => 1);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to set cell value of worksheet and apply rich text formatting
$response = $cellsApi->PostWorksheetCellSetValue(name=> $name, sheetName=>$sheetName, cellName=>$cellName, formula=>$formula);
if($response->{'Status'} eq 'OK'){
$response = $cellsApi->PostCalulateCellFormula(name=> $name, sheetName=>$sheetName, cellName=>$cellName, body=>@options);
print("\nCalculate cell formula, Done!");
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::Font;
use AsposeCellsCloud::Object::Style;
use AsposeCellsCloud::Object::ThemeColor;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellName = 'A1';
my @themecolor = AsposeCellsCloud::Object::ThemeColor->new('ColorType' => 'Text2', 'Tint'=> 1);
my @font = AsposeCellsCloud::Object::Font->new('Name' => 'Arial', 'Size'=> 10);
my @styleBody = AsposeCellsCloud::Object::Style->new('Font'=> @font, 'BackgroundThemeColor' =>@themecolor);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to set the styles of selected cells in a worksheet
$response = $cellsApi->PostUpdateWorksheetCellStyle(name=> $name, sheetName=>$sheetName, cellName=>$cellName, body=>@styleBody);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $startRow = 1;
my $startColumn = 1;
my $endRow = 2;
my $endColumn = 2;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to clear contents and styles of selected cells in a worksheet
$response = $cellsApi->PostClearContents(name=> $name, sheetName=>$sheetName, startRow=>$startRow, startColumn=>$startColumn, endRow=>$endRow, endColumn=>$endColumn);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $range = 'A1:A12';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to clear cells formatting in a worksheet
$response = $cellsApi->PostClearFormats(name=> $name, sheetName=>$sheetName, range=>$range);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellName = 'A1';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get cell style from a worksheet
$response = $cellsApi->GetWorksheetCellStyle(name=> $name, sheetName=>$sheetName, cellName=>$cellName);
if($response->{'Status'} eq 'OK'){
my $cellStyle = $response->{'Style'};
print "\nCell Font Name :: " . $cellStyle->{'Font'}->{'Name'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellOrMethodName = "a1";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get a specific cell from a worksheet
$response = $cellsApi->GetWorksheetCell(name=> $name, sheetName=>$sheetName, cellOrMethodName=>$cellOrMethodName);
if($response->{'Status'} eq 'OK'){
my $cell = $response->{'Cell'};
print "\nCell Name :: " . $cell->{'Name'};
print "\nCell Value :: " . $cell->{'Value'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellOrMethodName = "firstcell";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get first cell of a worksheet
$response = $cellsApi->GetWorksheetCell(name=> $name, sheetName=>$sheetName, cellOrMethodName=>$cellOrMethodName);
if($response->{'Status'} eq 'OK'){
my $cell = $response->{'Cell'};
print "\nCell Name :: " . $cell->{'Name'};
print "\nCell Value :: " . $cell->{'Value'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellOrMethodName = "endcell";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get last cell of a worksheet
$response = $cellsApi->GetWorksheetCell(name=> $name, sheetName=>$sheetName, cellOrMethodName=>$cellOrMethodName);
if($response->{'Status'} eq 'OK'){
my $cell = $response->{'Cell'};
print "\nCell Name :: " . $cell->{'Name'};
print "\nCell Value :: " . $cell->{'Value'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellOrMethodName = "maxcolumn";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get index of last column which contains data or style in a worksheet
$response = $cellsApi->GetWorksheetCell2(name=> $name, sheetName=>$sheetName, cellOrMethodName=>$cellOrMethodName);
print "\nMaxColumn :: " . $response->content;
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellOrMethodName = "maxdatacolumn";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get index of last column which contains data in a worksheet
$response = $cellsApi->GetWorksheetCell2(name=> $name, sheetName=>$sheetName, cellOrMethodName=>$cellOrMethodName);
print "\nMaxDataColumn :: " . $response->content;
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellOrMethodName = "maxdatarow";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get index of last row which contains data in a worksheet
$response = $cellsApi->GetWorksheetCell2(name=> $name, sheetName=>$sheetName, cellOrMethodName=>$cellOrMethodName);
print "\nMaxDataRow :: " . $response->content;
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellOrMethodName = "maxrow";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get index of last row which contains data or style in a worksheet
$response = $cellsApi->GetWorksheetCell2(name=> $name, sheetName=>$sheetName, cellOrMethodName=>$cellOrMethodName);
print "\nMaxRow :: " . $response->content;
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $startRow = 1;
my $startColumn = 1;
my $totalRows = 1;
my $totalColumns = 5;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to merge selected cells in a worksheet
$response = $cellsApi->PostWorksheetMerge(name=> $name, sheetName=>$sheetName, startRow=>$startRow, startColumn=>$startColumn, totalRows=>$totalRows, totalColumns=>$totalColumns);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellOrMethodName = "mincolumn";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get index of first column which contains data or style in a worksheet
$response = $cellsApi->GetWorksheetCell2(name=> $name, sheetName=>$sheetName, cellOrMethodName=>$cellOrMethodName);
print "\nMinColumn :: " . $response->content;
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellOrMethodName = "mindatacolumn";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get index of first column which contains data in a worksheet
$response = $cellsApi->GetWorksheetCell2(name=> $name, sheetName=>$sheetName, cellOrMethodName=>$cellOrMethodName);
print "\nMinDataColumn :: " . $response->content;
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellOrMethodName = "mindatarow";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get index of first row which contains data in a worksheet
$response = $cellsApi->GetWorksheetCell2(name=> $name, sheetName=>$sheetName, cellOrMethodName=>$cellOrMethodName);
print "\nMinDataRow :: " . $response->content;
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellOrMethodName = "minrow";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get index of first row which contains data or style in a worksheet
$response = $cellsApi->GetWorksheetCell2(name=> $name, sheetName=>$sheetName, cellOrMethodName=>$cellOrMethodName);
print "\nMinRow :: " . $response->content;
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $startRow = 1;
my $startColumn = 1;
my $totalRows = 1;
my $totalColumns = 5;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to merge selected cells in a worksheet
$response = $cellsApi->PostWorksheetMerge(name=> $name, sheetName=>$sheetName, startRow=>$startRow, startColumn=>$startColumn, totalRows=>$totalRows, totalColumns=>$totalColumns);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $cellName = "A1";
my $type = "int";
my $formula = "sum(a5:a10)";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to set formula for a cell in a worksheet
$response = $cellsApi->PostWorksheetCellSetValue(name=> $name, sheetName=>$sheetName, cellName=>$cellName, type=>$type, formula=>$formula);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $cellarea = 'A10:B20';
my $value = '1234';
my $type = 'int';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to set value for selected range in a worksheet
$response = $cellsApi->PostSetCellRangeValue(name=> $name, sheetName=>$sheetName, cellarea=>$cellarea, value=>$value, type=>$type);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $cellName = "A1";
my $type = "int";
my $value = "99";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to set value of a cell in a worksheet
$response = $cellsApi->PostWorksheetCellSetValue(name=> $name, sheetName=>$sheetName, cellName=>$cellName, type=>$type, value=>$value);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'MergeCell_Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $startRow = 1;
my $startColumn = 1;
my $totalRows = 1;
my $totalColumns = 5;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to unmerge selected merged cells in a worksheet
$response = $cellsApi->PostWorksheetUnmerge(name=> $name, sheetName=>$sheetName, startRow=>$startRow, startColumn=>$startColumn, totalRows=>$totalRows, totalColumns=>$totalColumns);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
my $chartType = 'bar';
my $upperLeftRow = 12;
my $upperLeftColumn = 12;
my $lowerRightRow = 20;
my $lowerRightColumn = 20;
my $area = 'A1:A3';
my $isVertical = 'False';
my $isAutoGetSerialName = 'True';
my $title = 'SalesState';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add a chart in a worksheet
$response = $cellsApi->PutWorksheetAddChart(name=> $name, sheetName=>$sheetName, chartType=>$chartType, upperLeftRow=>$upperLeftRow,
upperLeftColumn=>$upperLeftColumn, lowerRightRow=>$lowerRightRow, lowerRightColumn=>$lowerRightColumn, area=>$area,
isVertical=>$isVertical, isAutoGetSerialName=>$isAutoGetSerialName);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $filename = "Sample_Test_Book";
my $name = $filename . ".xls";
my $sheetName = "Sheet5";
my $chartNumber = 0;
my $format = "png";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to convert a chart to image
$response = $cellsApi->GetWorksheetChartWithFormat(name=> $name, sheetName=>$sheetName, chartNumber=>$chartNumber, format=>$format);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $filename . $chartNumber . '.' . $format;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete all charts from a worksheet
$response = $cellsApi->DeleteWorksheetClearCharts(name=> $name, sheetName=>$sheetName);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
my $chartIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete a chart from a worksheet
$response = $cellsApi->DeleteWorksheetDeleteChart(name=> $name, sheetName=>$sheetName, chartIndex=>$chartIndex);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
my $chartIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete chart title of a chart
$response = $cellsApi->DeleteWorksheetChartTitle(name=> $name, sheetName=>$sheetName, chartIndex=>$chartIndex);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
my $chartNumber = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get a specific chart from a worksheet
$response = $cellsApi->GetWorksheetChart(name=> $name, sheetName=>$sheetName, chartNumber=>$chartNumber);
if($response->{'Status'} eq 'OK'){
my $chart = $response->{'Chart'};
print("\nChart Type :: " . $chart->{'Type'});
print("\nChart Name :: " . $chart->{'Name'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
my $chartIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get the chart area of a chart from a worksheet
$response = $cellsApi->GetChartArea(name=> $name, sheetName=>$sheetName, chartIndex=>$chartIndex);
if($response->{'Status'} eq 'OK'){
my $chartArea = $response->{'ChartArea'};
print("\nChatArea X :: " . $chartArea->{'X'});
print("\nChatArea Y :: " . $chartArea->{'Y'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
my $chartIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get fill format of a chart area from a worksheet
$response = $cellsApi->GetChartAreaFillFormat(name=> $name, sheetName=>$sheetName, chartIndex=>$chartIndex);
if($response->{'Status'} eq 'OK'){
my $chartAreaFillFormat = $response->{'FillFormat'};
print("\nChatArea FillFormat Type :: " . $chartAreaFillFormat->{'Type'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
my $chartIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get information of a chart legend of a chart
$response = $cellsApi->GetWorksheetChartLegend(name=> $name, sheetName=>$sheetName, chartIndex=>$chartIndex);
if($response->{'Status'} eq 'OK'){
my $chartLegendInfo = $response->{'Legend'};
print("\nChart Legend Position :: " . $chartLegendInfo->{'Position'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
my $chartIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to hide chart legend of a chart
$response = $cellsApi->DeleteWorksheetChartLegend(name=> $name, sheetName=>$sheetName, chartIndex=>$chartIndex);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::Title;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
my $chartIndex = 0;
my @titleBody = AsposeCellsCloud::Object::Title->new('Height' => 200);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add title to a chart
$response = $cellsApi->PutWorksheetChartTitle(name=> $name, sheetName=>$sheetName, chartIndex=>$chartIndex, body=>@titleBody);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
my $chartIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to show chart legend of a chart
$response = $cellsApi->PutWorksheetChartLegend(name=> $name, sheetName=>$sheetName, chartIndex=>$chartIndex);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::Legend;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
my $chartIndex = 0;
my @legendBody = AsposeCellsCloud::Object::Legend->new('Height' => 15, 'Position' => 'Left');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to update a chart legend of a chart
$response = $cellsApi->PostWorksheetChartLegend(name=> $name, sheetName=>$sheetName, chartIndex=>$chartIndex, body=>@legendBody);
if($response->{'Status'} eq 'OK'){
my $chartLegendInfo = $response->{'Legend'};
print("\nChart Legend Position :: " . $chartLegendInfo->{'Position'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::Chart;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'sheet4';
my $chartIndex = 0;
my @body = AsposeCellsCloud::Object::Chart->new('Type' => 'line');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to update chart properties
$response = $cellsApi->CellsChartsPostWorksheetChart(name=> $name, sheetName=>$sheetName, chartIndex=>$chartIndex, body=>@body);
if($response->{'Status'} eq 'OK'){
print("\nUpdate Chart properties in Excel Worksheet, Done!");
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::Title;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet5';
my $chartIndex = 0;
my @titleBody = AsposeCellsCloud::Object::Title->new('Text' => 'Aspose', 'Height' => 15);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to update chart title in a Worksheet
$response = $cellsApi->PutWorksheetChartTitle(name=> $name, sheetName=>$sheetName, chartIndex=>$chartIndex, body=>@titleBody);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'sheet1';
my $index = 0;
my $type = "CellValue";
my $operatorType = 'Equal';
my $formula1 = 'v1';
my $formula2 = 'v2';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add a condition for format condition
$response = $cellsApi->PutWorksheetFormatConditionCondition(name=> $name, sheetName=>$sheetName, index=>$index, type => $type, operatorType => $operatorType, formula1 => $formula1,formula2 => $formula2);
print "\n". $response->{'Body'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'sheet1';
my $index = 0;
my $cellArea = 'A1:C3';
my $type = "Expression";
my $operatorType = 'Between';
my $formula1 = 'v1';
my $formula2 = 'v2';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add a format condition
$response = $cellsApi->PutWorksheetFormatCondition(name=> $name, sheetName=>$sheetName, index=>$index, cellArea=>$cellArea, type => $type, operatorType => $operatorType, formula1 => $formula1,formula2 => $formula2);
print "\n". $response->{'Body'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'sheet1';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to clear all condition formattings
$response = $cellsApi->DeleteWorksheetConditionalFormattings(name=> $name, sheetName=>$sheetName);
print "\n". $response->{'Body'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'sheet1';
my $index = 0;
my $cellArea = "A1:C3";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to put worksheet format conditional area
$response = $cellsApi->PutWorksheetFormatConditionArea(name=> $name, sheetName=>$sheetName, index=>$index, cellArea => $cellArea);
print "\n". $response->{'Body'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'sheet1';
my $index = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get conditional formatting
$response = $cellsApi->GetWorksheetConditionalFormatting(name=> $name, sheetName=>$sheetName, index=>$index);
print "\n". $response->{'Body'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'sheet1';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get conditional formattings of worksheet
$response = $cellsApi->GetWorksheetConditionalFormattings(name=> $name, sheetName=>$sheetName);
print "\n". $response->{'Body'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'sheet1';
my $startRow = 3;
my $startColumn = 3;
my $totalRows = 1;
my $totalColumns = 1;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to remove cell area from conditional formatting
$response = $cellsApi->DeleteWorksheetConditionalFormattingArea(name=> $name, sheetName=>$sheetName, startRow=>$startRow,startColumn=>$startColumn,totalRows=>$totalRows,totalColumns=>$totalColumns);
print "\n". $response->{'Body'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'sheet1';
my $index = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to remove conditional formatting
$response = $cellsApi->DeleteWorksheetConditionalFormatting(name=> $name, sheetName=>$sheetName, index=>$index);
print "\n". $response->{'Body'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::SaveOptions;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get all document properties of a workbook
$response = $cellsApi->GetDocumentProperties(name=> $name);
if($response->{'Status'} eq 'OK'){
# Display document property info
foreach my $docProperty (@{$response->{'DocumentProperties'}->{'DocumentPropertyList'}}){
print "\n $docProperty->{'Name'}" . " : " . $docProperty->{'Value'};
}
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::SaveOptions;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Book1.xlsx';
my $propertyName = 'AsposeAuthor';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get a particular document property
$response = $cellsApi->GetDocumentProperty(name=> $name, propertyName=>$propertyName);
if($response->{'Status'} eq 'OK'){
# Display document property info
my $docProperty = $response->{'DocumentProperty'};
print "\n $docProperty->{'Name'}" . " : " . $docProperty->{'Value'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::CellsDocumentProperty;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Book1.xlsx';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to remove all document properties
$response = $cellsApi->DeleteDocumentProperties(name=> $name);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::CellsDocumentProperty;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Book1.xlsx';
my $propertyName = 'AsposeAuthor';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to remove a particular document property
$response = $cellsApi->DeleteDocumentProperty(name=> $name, propertyName=>$propertyName);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::CellsDocumentProperty;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Book1.xlsx';
my $propertyName = 'AsposeAuthor';
my @cellsDocumentPropertyBody = AsposeCellsCloud::Object::CellsDocumentProperty->new('Name' => 'AsposeAuthor', 'Value' => 'Aspose Plugin Developer', 'BuiltIn'=> 'False');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to set a particular document property
$response = $cellsApi->PutDocumentProperty(name=> $name, propertyName=>$propertyName, body=>@cellsDocumentPropertyBody);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::CellsDocumentProperty;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $filename = "Sample_Test_Book";
my $name = $filename . ".xls";
my $sheetName = "Sheet4";
my $autoshapeNumber = 1;
my $format = "png";
my @cellsDocumentPropertyBody = AsposeCellsCloud::Object::CellsDocumentProperty->new('Name' => 'AsposeAuthor', 'Value' => 'Aspose Plugin Developer', 'BuiltIn'=> 'False');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to convert an autoshape to image
$response = $cellsApi->GetWorksheetAutoshapeWithFormat(name=> $name, sheetName=>$sheetName, autoshapeNumber=>$autoshapeNumber, format=>$format);
if($response->{'Status'} eq 'OK'){
# Download image from response stream
my $output_file = $out_path. $filename . $autoshapeNumber . "." . $format;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $options = ("{\'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\'}}");
my $dataFiles = ("Batch_data_json.txt", "Array_string_json.txt", "Array_int_json.txt", "Array_double_json.txt");
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
for(my $i=0; $i < $options; $i++) {
$response = $storageApi->PutCreate(Path => $dataFiles[$i], file => $data_path.$dataFiles[$i]);
# Invoke Aspose.Cells Cloud SDK API to copy a worksheet
$response = $cellsApi->PostImportData(name=> $name, body =>$options[$i]);
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $xml = "<ImportBatchDataOption><DestinationWorksheet>Sheet1</DestinationWorksheet><IsInsert>false</IsInsert><ImportDataType>BatchData</ImportDataType><Source><FileSourceType>RequestFiles</FileSourceType><FilePath>Batch_data_xml_2.txt</FilePath></Source></ImportBatchDataOption>";
my $batchFile = "Batch_data_xml_2.txt";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
$response = $storageApi->PutCreate(Path => batchFile, file => $data_path.batchFile);
$response = $cellsApi->PostImportData(name=> $name, body =>$xml);
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::OleObject;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $sourceFileName = 'Sample_Book2.xls';
my $imageFileName = 'aspose-logo.png';
my @oleObjectBody = AsposeCellsCloud::Object::OleObject->new(
'SourceFullName' => $sourceFileName,
'ImageSourceFullName' => $imageFileName,
'UpperLeftRow' => 15,
'UpperLeftColumn' => 5,
'Top' => 10,
'Bottom' => 10,
'Left' => 10,
'Height' => 400,
'Width' => 400,
'IsAutoSize' => 'True'
);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
$response = $storageApi->PutCreate(Path => $sourceFileName, file => $data_path.$sourceFileName);
$response = $storageApi->PutCreate(Path => $imageFileName, file => $data_path.$imageFileName);
# Invoke Aspose.Cells Cloud SDK API to add an OleObject to a worksheet
$response = $cellsApi->PutWorksheetOleObject(name=> $name, sheetName=>$sheetName, body=>@oleObjectBody);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $filename = "Sample_OleObject_Book1";
my $name = $filename . ".xlsx";
my $sheetName = "Sheet1";
my $objectNumber = 0;
my $format = "png";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to convert an OLE object to image
$response = $cellsApi->GetWorksheetOleObjectWithFormat(name=> $name, sheetName=>$sheetName, objectNumber=>$objectNumber, format=>$format);
if($response->{'Status'} eq 'OK'){
# Get converted image from response stream
my $output_file = $out_path. $filename . $objectNumber . "." . $format;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = "Embeded_OleObject_Sample_Book1.xlsx";
my $sheetName = "Sheet1";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete all OleObjects from a worksheet
$response = $cellsApi->DeleteWorksheetOleObjects(name=> $name, sheetName=>$sheetName);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = "Embeded_OleObject_Sample_Book1.xlsx";
my $sheetName = "Sheet1";
my $oleObjectIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete a specific OleObject from a worksheet
$response = $cellsApi->DeleteWorksheetOleObject(name=> $name, sheetName=>$sheetName, oleObjectIndex=>$oleObjectIndex);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = "Embeded_OleObject_Sample_Book1.xlsx";
my $sheetName = "Sheet1";
my $objectNumber = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get a specific oleobject from a worksheet
$response = $cellsApi->GetWorksheetOleObject(name=> $name, sheetName=>$sheetName, objectNumber=>$objectNumber);
if($response->{'Status'} eq 'OK'){
my $oleObject = $response->{'OleObject'};
print "\n OleObject File Format Type" . " : " . $oleObject->{'FileFormatType'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::OleObject;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Embeded_OleObject_Sample_Book1.xlsx';
my $sheetName = 'Sheet1';
my $oleObjectIndex = 0;
my $sourceFileName = 'Sample_Book2.xls';
my $imageFileName = 'aspose-logo.png';
my @oleObjectBody = AsposeCellsCloud::Object::OleObject->new(
'SourceFullName' => $sourceFileName,
'ImageSourceFullName' => $imageFileName,
'UpperLeftRow' => 15,
'UpperLeftColumn' => 5,
'Top' => 10,
'Bottom' => 10,
'Left' => 10,
'Height' => 400,
'Width' => 400,
'IsAutoSize' => 'True'
);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
$response = $storageApi->PutCreate(Path => $sourceFileName, file => $data_path.$sourceFileName);
$response = $storageApi->PutCreate(Path => $imageFileName, file => $data_path.$imageFileName);
# Invoke Aspose.Cells Cloud SDK API to update a specific OleObject from a worksheet
$response = $cellsApi->PostUpdateWorksheetOleObject(name=> $name, sheetName=>$sheetName, oleObjectIndex=>$oleObjectIndex, body=>@oleObjectBody);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet6';
my $upperLeftRow = 5;
my $upperLeftColumn = 5;
my $lowerRightRow = 10;
my $lowerRightColumn = 10;
my $picturePath = "aspose-cloud.png";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
$response = $storageApi->PutCreate(Path => $picturePath, file => $data_path.$picturePath);
# Invoke Aspose.Cells Cloud SDK API to add a picture to a worksheet
$response = $cellsApi->PutWorksheetAddPicture(name=> $name, sheetName=>$sheetName, upperLeftRow=>$upperLeftRow,
upperLeftColumn=>$upperLeftColumn, lowerRightRow=>$lowerRightRow, lowerRightColumn=>$lowerRightColumn, picturePath=>$picturePath);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $filename = "Sample_Test_Book";
my $name = $filename . ".xls";
my $sheetName = 'Sheet6';
my $pictureNumber = 0;
my $format = 'png';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to convert a picture to image
$response = $cellsApi->GetWorksheetPictureWithFormat(name=> $name, sheetName=>$sheetName, pictureNumber=>$pictureNumber, format=>$format);
if($response->{'Status'} eq 'OK'){
# Get converted image from response stream
my $output_file = $out_path. $filename . $pictureNumber . "." . $format;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet6';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete all pictures from a worksheet
$response = $cellsApi->DeleteWorkSheetPictures(name=> $name, sheetName=>$sheetName);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet6';
my $pictureIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete a specific picture from a worksheet
$response = $cellsApi->DeleteWorksheetPicture(name=> $name, sheetName=>$sheetName, pictureIndex=>$pictureIndex);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet6';
my $pictureNumber = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get a specific picture from a worksheet
$response = $cellsApi->GetWorksheetPicture(name=> $name, sheetName=>$sheetName, pictureNumber=>$pictureNumber);
if($response->{'Status'} eq 'OK'){
my $picture = $response->{'Picture'};
print "\n Picture Image Format" . " : " . $picture->{'ImageFormat'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::Picture;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet6';
my $pictureIndex = 0;
my $picName = "aspose-cloud-logo";
my $pictureBody = AsposeCellsCloud::Object::Picture->new(
'Name' => $picName,
'RotationAngle' => 90
);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
$response = $storageApi->PutCreate(Path => $picName, file => $data_path.$picName);
# Invoke Aspose.Cells Cloud SDK API to update a picture to a worksheet
$response = $cellsApi->PostWorkSheetPicture(name=> $name, sheetName=>$sheetName, pictureIndex=>$pictureIndex, body=> $pictureBody);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::PivotTableFieldRequest;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Pivot_Table_Example.xls';
my $sheetName = 'Sheet2';
my $pivotTableIndex = 0;
my $pivotFieldType = "Row";
my @pivotTableFieldRequest = AsposeCellsCloud::Object::PivotTableFieldRequest->new( 'Data' => [1,2]);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add pivot field into pivot table
$response = $cellsApi->PostPivotTableStyle(name=> $name, sheetName=>$sheetName, pivotTableIndex=>$pivotTableIndex, pivotFieldType=>$pivotFieldType, body=>@pivotTableFieldRequest);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::CreatePivotTableRequest;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Pivot_Table_Example.xls';
my $sheetName = 'Sheet1';
my $createPivotTableRequestBody = AsposeCellsCloud::Object::CreatePivotTableRequest->new(
'Name' => 'MyPivot',
'SourceData' => 'A5:E10',
'DestCellName' => 'H20',
'UseSameSource' => 'True',
'PivotFieldRows' => [1],
'PivotFieldColumns' => [1],
'PivotFieldData' => [1]
);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add a pivot table in a worksheet
$response = $cellsApi->PutWorksheetPivotTable(name=> $name, sheetName=>$sheetName, body=>$createPivotTableRequestBody);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Pivot_Table_Example.xls';
my $sheetName = 'Sheet2';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete worksheet pivot tables
$response = $cellsApi->DeleteWorksheetPivotTables(name=> $name, sheetName=>$sheetName);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Pivot_Table_Example.xls';
my $sheetName = 'Sheet2';
my $pivotTableIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete worksheet pivot table by index
$response = $cellsApi->DeleteWorksheetPivotTable(name=> $name, sheetName=>$sheetName, pivotTableIndex=>$pivotTableIndex);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Pivot_Table_Example.xls';
my $sheetName = 'Sheet2';
my $pivottableIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get worksheet pivot table information by index
$response = $cellsApi->GetWorksheetPivotTable(name=> $name, sheetName=>$sheetName, pivottableIndex=>$pivottableIndex);
if($response->{'Status'} eq 'OK'){
foreach my $item (@{$response->{'PivotTable'}->{'BaseFields'}[0]->{'Items'}}){
print "\n item" . " : " . $item;
}
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::CreatePivotTableRequest;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Pivot_Table_Example.xls';
my $sheetName = 'Sheet2';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get worksheet pivot tables information
$response = $cellsApi->GetWorksheetPivotTables(name=> $name, sheetName=>$sheetName);
if($response->{'Status'} eq 'OK'){
my $pivotTables = $response->{'PivotTables'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $rowIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add an empty row in a worksheet
$response = $cellsApi->PutInsertWorksheetRow(name=> $name, sheetName=>$sheetName, rowIndex=>$rowIndex);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::AutoFitterOptions;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my @autoFitterOptionsBody = AsposeCellsCloud::Object::AutoFitterOptions->new('IgnoreHidden' => 'True');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to automatically fit rows height and width
$response = $cellsApi->PostAutofitWorkbookRows(name=> $name, body=>@autoFitterOptionsBody);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $sourceRowIndex = 2;
my $destinationRowIndex = 2;
my $rowNumber = 2;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to copy selected rows in a worksheet
$response = $cellsApi->PostCopyWorksheetRows(name=> $name, sheetName=>$sheetName, sourceRowIndex=>$sourceRowIndex, destinationRowIndex=>$destinationRowIndex, rowNumber=>$rowNumber);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $rowIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete a row from a worksheet
$response = $cellsApi->DeleteWorksheetRow(name=> $name, sheetName=>$sheetName, rowIndex=>$rowIndex);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $rowIndex = 1;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get a specific row from a worksheet
$response = $cellsApi->GetWorksheetRow(name=> $name, sheetName=>$sheetName, rowIndex=>$rowIndex);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $firstIndex = 0;
my $lastIndex = 3;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to group selected rows in a worksheet
$response = $cellsApi->PostGroupWorksheetRows(name=> $name, sheetName=>$sheetName, firstIndex=>$firstIndex, lastIndex=>$lastIndex);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $startrow = 1;
my $totalRows = 1;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to hide selected rows in a worksheet
$response = $cellsApi->PostHideWorksheetRows(name=> $name, sheetName=>$sheetName, startrow=>$startrow, totalRows=>$totalRows);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Group_Rows_Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $firstIndex = 1;
my $lastIndex = 1;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to ungroup selected rows in a worksheet
$response = $cellsApi->PostUngroupWorksheetRows(name=> $name, sheetName=>$sheetName, firstIndex=>$firstIndex, lastIndex=>$lastIndex);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Hide_Row_Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $startrow = 1;
my $totalRows = 1;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to unhide selected rows in a worksheet
$response = $cellsApi->PostUnhideWorksheetRows(name=> $name, sheetName=>$sheetName, startrow=>$startrow, totalRows=>$totalRows);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::SortKey;
use AsposeCellsCloud::Object::DataSorter;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'sheet7';
my $listObjectIndex = 1;
my @sortKey = AsposeCellsCloud::Object::SortKey->new( 'Key' => 1, 'SortOrder' => 'Ascending');
my @dataSorter = AsposeCellsCloud::Object::DataSorter->new( 'CaseSensitive' => 'True', 'KeyList' => [@sortKey]);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to sort table data
$response = $cellsApi->PostSortTableData(name=> $name, sheetName=>$sheetName, listObjectIndex=>$listObjectIndex, body=>@dataSorter);
if($response->{'Status'} eq 'OK'){
print("\nSort tabl data, Done!");
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'TaskBook.xlsx';
my $file1 = "Batch_data_xml.txt";
my $file2 = "Batch_data_xml_2.txt";
my $taskData = "<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>"
# Upload source files to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
$response = $storageApi->PutCreate(Path => file1, file => $data_path.file1);
$response = $storageApi->PutCreate(Path => file2, file => $data_path.file2);
$response = $cellsApi->PostTaskDataMultipartContent(file1=> $file1, file2=>$file2, body=>$taskData);
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $text = 'aspose';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to find text in a workbook
$response = $cellsApi->PostWorkbooksTextSearch(name=> $name, text=>$text);
if($response->{'Status'} eq 'OK'){
foreach my $item (@{$response->{'TextItems'}->{'TextItemList'}}){
print "\n $item->{'Text'}" . " :: href : " . $item->{'link'}->{'Href'};
}
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $text = 'aspose';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to find text in a worksheet
$response = $cellsApi->PostWorkSheetTextSearch(name=> $name, sheetName=>$sheetName, text=>$text);
if($response->{'Status'} eq 'OK'){
foreach my $item (@{$response->{'TextItems'}->{'TextItemList'}}){
print "\n $item->{'Text'}" . " :: href : " . $item->{'link'}->{'Href'};
}
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get all text items from a workbook
$response = $cellsApi->GetWorkBookTextItems(name=> $name);
if($response->{'Status'} eq 'OK'){
foreach my $item (@{$response->{'TextItems'}->{'TextItemList'}}){
print "\n $item->{'Text'}" . " :: href : " . $item->{'link'}->{'Href'};
}
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get all text items from a worksheet
$response = $cellsApi->GetWorkSheetTextItems(name=> $name, sheetName=>$sheetName);
if($response->{'Status'} eq 'OK'){
foreach my $item (@{$response->{'TextItems'}->{'TextItemList'}}){
print "\n $item->{'Text'}" . " :: href : " . $item->{'link'}->{'Href'};
}
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $oldValue = 'aspose';
my $newValue = 'aspose.com';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to replace text in a workbook
$response = $cellsApi->PostWorkbooksTextReplace(name=> $name, oldValue=>$oldValue, newValue=>$newValue);
if($response->{'Status'} eq 'OK'){
print "\n Matches " . $response->{'Matches'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $oldValue = 'aspose';
my $newValue = 'aspose.com';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to replace text in a worksheet
$response = $cellsApi->PostWorsheetTextReplace(name=> $name, sheetName=>$sheetName, oldValue=>$oldValue, newValue=>$newValue);
if($response->{'Status'} eq 'OK'){
print "\n Matches " . $response->{'Matches'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::CalculationOptions;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $body = AsposeCellsCloud::Object::CalculationOptions->new('CalcStackSize'=> 1);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to calculate all formulas in workbook
$response = $cellsApi->PostWorkbookCalculateFormula(name=> $name, body => $body);
print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::SaveOptions;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $newfilename = 'Sample_Test_Book.pdf';
my $format = "pdf";
my @saveOptionsBody = AsposeCellsCloud::Object::SaveOptions->new('CalculateFormula' => 'True', 'CheckFontCompatibility'=>'False', 'Compliance'=>'None', 'OnePagePerSheet'=>'False', 'SaveFormat'=>'pdf');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to convert workbook to different file formats using cloud storage
$response = $cellsApi->PostDocumentSaveAs(name=> $name, newfilename=>$newfilename, format=>$format, body=>@saveOptionsBody);
if($response->{'Status'} eq 'OK'){
my $destfilename = $response->{'SaveResult'}->{'DestDocument'}->{'Href'};
print("\n FileName: " . $destfilename);
# Download updated Workbook from storage server
my $output_file = $out_path. $destfilename;
$response = $storageApi->GetDownload(Path => $destfilename);
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::SaveOptions;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $filename = "Sample_Test_Book";
my $name = $filename . ".xls";
my $format = "pdf";
# Invoke Aspose.Cells Cloud SDK API to convert workbook to different file formats without storage
my $response = $cellsApi->PutConvertWorkBook(file => $data_path.$name, format=>$format);
if($response->{'Status'} eq 'OK'){
# Download Workbook from response stream
my $output_file = $out_path. $filename . "." . $format;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::SaveOptions;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $newfilename = 'Sample_Test_Book.pdf';
my $format = "pdf";
my @saveOptionsBody = AsposeCellsCloud::Object::SaveOptions->new('CalculateFormula' => 'True', 'CheckFontCompatibility'=>'False', 'Compliance'=>'None', 'OnePagePerSheet'=>'False', 'SaveFormat'=>'pdf');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to convert workbook to different file formats using cloud storage
$response = $cellsApi->PostDocumentSaveAs(name=> $name, newfilename=>$newfilename, format=>$format, body=>@saveOptionsBody);
if($response->{'Status'} eq 'OK'){
my $destfilename = $response->{'SaveResult'}->{'DestDocument'}->{'Href'};
print("\n FileName: " . $destfilename);
# Download updated Workbook from storage server
my $output_file = $out_path. $destfilename;
$response = $storageApi->GetDownload(Path => $destfilename);
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::SaveOptions;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book_';
for (0..7) { $name .= chr( int(rand(25) + 65) ); }
$name .= '.xls';
# Invoke Aspose.Cells Cloud SDK API to create an empty workbook
my $response = $cellsApi->PutWorkbookCreate(name=> $name);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::SaveOptions;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book_';
for (0..7) { $name .= chr( int(rand(25) + 65) ); }
$name .= '.xlsx';
# The template file, if the data not provided default workbook is created.
my $templatefile = 'Sample_SmartMarker.xlsx';
# Smart marker data file, if the data not provided the request content is checked for the data.
my $datafile = 'Sample_SmartMarker_Data.xml';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $templatefile, file => $data_path.$templatefile);
$response = $storageApi->PutCreate(Path => $datafile, file => $data_path.$datafile);
# Invoke Aspose.Cells Cloud SDK API to create a workbook from a SmartMarker template
$response = $cellsApi->PutWorkbookCreate(name=> $name, templateFile=>$templatefile, dataFile=>$datafile);
if($response->{'Status'} eq 'OK'){
my $outputfilename = $response->{'Workbook'}->{'FileName'};
print("\n FileName: " . $outputfilename);
# Download updated Workbook from storage server
my $output_file = $out_path. $outputfilename;
$response = $storageApi->GetDownload(Path => $outputfilename);
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::SaveOptions;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book_';
for (0..7) { $name .= chr( int(rand(25) + 65) ); }
$name .= '.xlsx';
# The template file, if the data not provided default workbook is created.
my $templatefile = 'Sample_SmartMarker.xlsx';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $templatefile, file => $data_path.$templatefile);
# Invoke Aspose.Cells Cloud SDK API to create a workbook from a SmartMarker template
$response = $cellsApi->PutWorkbookCreate(name=> $name, templateFile=>$templatefile);
if($response->{'Status'} eq 'OK'){
my $outputfilename = $response->{'Workbook'}->{'FileName'};
print("\n FileName: " . $outputfilename);
# Download updated Workbook from storage server
my $output_file = $out_path. $outputfilename;
$response = $storageApi->GetDownload(Path => $outputfilename);
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::WorkbookEncryptionRequest;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'encrypted_Sample_Test_Book.xls';
my @workbookEncryptionRequest = AsposeCellsCloud::Object::WorkbookEncryptionRequest->new('EncryptionType' => 'XOR', 'Password' => 'aspose', 'KeyLength'=> '128');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to decrypt a workbook
$response = $cellsApi->DeleteDecryptDocument(name=> $name, body=>@workbookEncryptionRequest);
if($response->{'Status'} eq 'OK'){
# Download decrypted Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::WorkbookEncryptionRequest;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my @workbookEncryptionRequest = AsposeCellsCloud::Object::WorkbookEncryptionRequest->new('EncryptionType' => 'XOR', 'Password' => 'aspose', 'KeyLength'=> '128');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to encrypt a workbook
$response = $cellsApi->PostEncryptDocument(name=> $name, body=>@workbookEncryptionRequest);
if($response->{'Status'} eq 'OK'){
# Download encrypted Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Book1.xlsx';
my $mergeWith = 'Sample_Book2.xls';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
$response = $storageApi->PutCreate(Path => $mergeWith, file => $data_path.$mergeWith);
# Invoke Aspose.Cells Cloud SDK API to merge multiple workbooks into a single workbook
$response = $cellsApi->PostWorkbooksMerge(name=> $name, mergeWith=>$mergeWith);
if($response->{'Status'} eq 'OK'){
my $destFileName = $response->{'Workbook'}->{'FileName'};
# Download updated Workbook from storage server
my $output_file = $out_path. $destFileName;
$response = $storageApi->GetDownload(Path => $destFileName);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get names count from a workbook
$response = $cellsApi->GetWorkBookNames(name=> $name);
if($response->{'Status'} eq 'OK'){
my $names = $response->{'Names'};
print "\n Total Workbook Count" . " : " . $names->{'Count'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::WorkbookProtectionRequest;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my @workbookProtectionRequest = AsposeCellsCloud::Object::WorkbookProtectionRequest->new('Password' => 'aspose', 'ProtectionType'=> 'All');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to protect a workbook
$response = $cellsApi->PostProtectDocument(name=> $name, body=>@workbookProtectionRequest);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'password_protected_Sample_Test_Book.xls';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to clear modify password of a workbook
$response = $cellsApi->DeleteDocumentUnProtectFromChanges(name=> $name);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::PasswordRequest;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my @passwordRequest= AsposeCellsCloud::Object::PasswordRequest->new('Password' => 'aspose');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to set modify password of a workbook
$response = $cellsApi->PutDocumentProtectFromChanges(name=> $name, body=>@passwordRequest);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::PasswordRequest;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $from = 1;
my $to = 1;
my $format = 'png';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to merge multiple workbooks into a single workbook
$response = $cellsApi->PostWorkbookSplit(name=> $name, format => $format, from=>$from, to=>$to);
if($response->{'Status'} eq 'OK'){
my $outfilename = $response->{'Result'}->{'Documents'}[0]->{'link'}->{'Href'};
# Download updated Workbook from storage server
my $output_file = $out_path. $outfilename;
$response = $storageApi->GetDownload(Path => $outfilename);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::PasswordRequest;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $from = 1;
my $to = 1;
my $format = 'png';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to merge multiple workbooks into a single workbook
$response = $cellsApi->PostWorkbookSplit(name=> $name, format => $format, from=>$from, to=>$to);
if($response->{'Status'} eq 'OK'){
my $outfilename = $response->{'Result'}->{'Documents'}[0]->{'link'}->{'Href'};
# Download updated Workbook from storage server
my $output_file = $out_path. $outfilename;
$response = $storageApi->GetDownload(Path => $outfilename);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::WorkbookProtectionRequest;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Protected_Test_Book.xls';
my @workbookProtectionRequest = AsposeCellsCloud::Object::WorkbookProtectionRequest->new('Password' => 'aspose', 'ProtectionType'=> 'None');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to un-protect a workbook
$response = $cellsApi->DeleteUnProtectDocument(name=> $name, body=>@workbookProtectionRequest);
if($response->{'Status'} eq 'OK'){
# Download unprotected Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
my $range = 'A1:B1';
my $fieldIndex = 0;
my $operatorType1 = 'LessOrEqual';
my $criteria1 = '1';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add custom filter
$response = $cellsApi->PutWorksheetCustomFilter(name=> $name, sheetName=>$sheetName, range=>$range, fieldIndex => $fieldIndex, operatorType1 => $operatorType1, criteria1 =>$criteria1);
print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
my $range = 'A1:B1';
my $fieldIndex = 0;
my $dateTimeGroupingType = 'Year';
my $year = 1920;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add data filter
$response = $cellsApi->PutWorksheetDateFilter(name=> $name, sheetName=>$sheetName, range =>$range, fieldIndex => $fieldIndex, dateTimeGroupingType => $dateTimeGroupingType,year => $year);
#print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
my $range = 'A1:B1';
my $fieldIndex = 0;
my $dynamicFilterType = 'BelowAverage';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add dynamic filter
$response = $cellsApi->PutWorksheetDynamicFilter(name=> $name, sheetName=>$sheetName, range=>$range, fieldIndex => $fieldIndex, dynamicFilterType => $dynamicFilterType);
print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
my $range = 'A1:B1';
my $fieldIndex = 0;
my $iconSetType = 'ArrowsGray3';
my $iconId = 1;
my $matchBlanks = 'false';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add icon filter
$response = $cellsApi->PutWorksheetIconFilter(name=> $name, sheetName=>$sheetName, range=>$range, fieldIndex => $fieldIndex, iconSetType => $iconSetType, iconId =>$iconId, matchBlanks =>$matchBlanks);
print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1-new';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add a new worksheet in a workbook
$response = $cellsApi->PutAddNewWorksheet(name=> $name, sheetName=>$sheetName);
if($response->{'Status'} eq 'Created'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'AutoFilter.xlsx';
my $sheetName = 'Sheet1';
my $range = 'A1:B13';
my $fieldIndex = 0;
my $criteria = 'Year';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add worksheet filter
$response = $cellsApi->PutWorksheetFilter(name=> $name, sheetName=>$sheetName, range=>$range, fieldIndex => $fieldIndex, criteria => $criteria);
print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $formula = 'SUM(A5:A10)';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to calculate formula in a worksheet
$response = $cellsApi->GetWorkSheetCalculateFormula(name=> $name, sheetName=>$sheetName, formula=>$formula);
if($response->{'Status'} eq 'OK'){
print("\n Result :: $response->{'Value'}->{'Value'}")
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $filename = 'Sample_Test_Book';
my $name = $filename . '.xls';
my $sheetName = 'Sheet1';
my $format = 'png';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to convert worksheet to an image
$response = $cellsApi->GetWorkSheetWithFormat(name=> $name, sheetName=>$sheetName, format=>$format);
if($response->{'Status'} eq 'OK'){
# Download converted document from response stream
my $output_file = $out_path. $filename . "." . $format;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::CopyOptions;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet7';
my $sourceSheet = 'Sheet1';
my @copyoptions = AsposeCellsCloud::Object::CopyOptions->new('CopyNames' => 'true');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to copy a worksheet
$response = $cellsApi->PostCopyWorksheet(name=> $name, sheetName=>$sheetName, sourceSheet=>$sourceSheet, body =>@copyoptions);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
my $fieldIndex = 0;
my $dateTimeGroupingType = 'Year';
my $year = 1920;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add data filter
$response = $cellsApi->DeleteWorksheetDateFilter(name=> $name, sheetName=>$sheetName, fieldIndex => $fieldIndex, dateTimeGroupingType => $dateTimeGroupingType,year => $year);
#print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
my $fieldIndex = 0;
my $criteria = 'Year';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete worksheet filter
$response = $cellsApi->DeleteWorksheetFilter(name=> $name, sheetName=>$sheetName, fieldIndex=> $fieldIndex, criteria=> $criteria);
print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'WorkSheetBackground_Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete background image or watermark image for a worksheet
$response = $cellsApi->DeleteWorkSheetBackground(name=> $name, sheetName=>$sheetName);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to delete worksheet comments
$response = $cellsApi->DeleteWorkSheetComments(name=> $name, sheetName=>$sheetName);
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
my $range = 'A1:B1';
my $fieldIndex = 0;
my $filterColor = '{
"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"
}
}';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to filter list using color filter
$response = $cellsApi->PutWorksheetColorFilter(name=> $name, sheetName=>$sheetName, range=>$range, fieldIndex => $fieldIndex, body => $filterColor);
print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
my $range = 'A1:B1';
my $fieldIndex = 0;
my $isTop = 'true';
my $itemCount = 1;
my $matchBlanks = 'true';
my $isPercent = 'true';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to add filter to top 10
$response = $cellsApi->PutWorksheetFilterTop10(name=> $name, sheetName=>$sheetName, range=>$range, fieldIndex => $fieldIndex, isTop => $isTop, itemCount =>$itemCount, matchBlanks =>$matchBlanks,isPercent =>$isPercent);
print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $row = 0;
my $column = 1;
my $freezedRows = 1;
my $freezedColumns = 2;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to freeze panes in a worksheet
$response = $cellsApi->PutWorksheetFreezePanes(name=> $name, sheetName=>$sheetName, row=>$row, , column=>$column, freezedColumns=>$freezedColumns, freezedRows=>$freezedRows );
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet4';
my $autoshapeNumber = 1;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get autoshape from a worksheet
$response = $cellsApi->GetWorksheetAutoshape(name=> $name, sheetName=>$sheetName, autoshapeNumber=>$autoshapeNumber);
if($response->{'Status'} eq 'OK'){
my $autoShape = $response->{'AutoShape'};
print "\n $autoShape->{'HtmlText'}";
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $columnIndex = 1;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get a specific column from a worksheet
$response = $cellsApi->GetWorksheetColumn(name=> $name, sheetName=>$sheetName, columnIndex=>$columnIndex);
if($response->{'Status'} eq 'OK'){
my $sheetColumn = $response->{'Column'};
print "\n Href :: " . $sheetColumn->{'link'}->{'Href'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet2';
my $cellName = 'A4';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get a specific comment from a worksheet
$response = $cellsApi->GetWorkSheetComment(name=> $name, sheetName=>$sheetName, cellName=>$cellName);
if($response->{'Status'} eq 'OK'){
my $cellComment = $response->{'Comment'};
print "\n Comment Note :: " . $cellComment->{'Note'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet3';
my $validationIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get validation from a worksheet
$response = $cellsApi->GetWorkSheetValidation(name=> $name, sheetName=>$sheetName, validationIndex=>$validationIndex);
if($response->{'Status'} eq 'OK'){
my $sheetValidation = $response->{'Validation'};
print "\n Sheet Validation Type :: " . $sheetValidation->{'Type'};
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter
$response = $cellsApi->GetWorksheetAutoFilter(name=> $name, sheetName=>$sheetName);
print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to get worksheet count
$response = $cellsApi->GetWorkSheets(name=> $name);
if($response->{'Status'} eq 'OK'){
print "\n Sheet Count :: " . scalar(@{$response->{'Worksheets'}->{'WorksheetList'}});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $isVisible = 'False';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to hide a worksheet in a workbook
$response = $cellsApi->PutChangeVisibilityWorksheet(name=> $name, sheetName=>$sheetName, isVisible=>$isVisible);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
my $fieldIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to match all blanks cells in the list
$response = $cellsApi->PostWorksheetMatchBlanks(name=> $name, sheetName=>$sheetName, fieldIndex =>$fieldIndex);
print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
my $fieldIndex = 0;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to match all non blanks cells in the list
$response = $cellsApi->PostWorksheetMatchNonBlanks(name=> $name, sheetName=>$sheetName, fieldIndex =>$fieldIndex);
print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::WorksheetMovingRequest;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my @worksheetMovingRequest = AsposeCellsCloud::Object::WorksheetMovingRequest->new( 'DestinationWorksheet' => 'Sheet5', 'Position' => 'after');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to a new location in a workbook
$response = $cellsApi->PostMoveWorksheet(name=> $name, sheetName=>$sheetName, body=>@worksheetMovingRequest);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Book1.xlsx';
my $sheetName = 'Sheet1';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API refresh autofilter
$response = $cellsApi->PostWorksheetAutoFilterRefresh(name=> $name, sheetName=>$sheetName);
print "\n" . $response->{'Status'};
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet3';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to remove a worksheet from a workbook
$response = $cellsApi->DeleteWorksheet(name=> $name, sheetName=>$sheetName);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $newname = "newSheet";
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to rename a worksheet
$response = $cellsApi->PostRenameWorksheet(name=> $name, sheetName=>$sheetName, newname=>$newname);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $bgfile = 'aspose-cloud.png';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to set a background image or watermark image for a worksheet
$response = $cellsApi->PutWorkSheetBackground(name=> $name, sheetName=>$sheetName, file => $data_path.$bgfile);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::SortKey;
use AsposeCellsCloud::Object::DataSorter;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $cellArea = 'A5:A10';
my @sortKey = AsposeCellsCloud::Object::SortKey->new( 'Key' => 0, 'SortOrder' => 'descending');
my @dataSorter = AsposeCellsCloud::Object::DataSorter->new( 'CaseSensitive' => 'False',
'HasHeaders' => 'False','SortLeftToRight' => 'False', 'KeyList' => [@sortKey]);
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to sort worksheet data
$response = $cellsApi->PostWorksheetRangeSort(name=> $name, sheetName=>$sheetName, cellArea=>$cellArea, body=>@dataSorter);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $row = 1;
my $column = 1;
my $freezedRows = 1;
my $freezedColumns = 1;
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to unfreeze panes in a worksheet
$response = $cellsApi->DeleteWorksheetFreezePanes(name=> $name, sheetName=>$sheetName, row=>$row, , column=>$column, freezedColumns=>$freezedColumns, freezedRows=>$freezedRows );
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Hidden-WorkSheet-Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my $isVisible = 'True';
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to un-hide a worksheet in a workbook
$response = $cellsApi->PutChangeVisibilityWorksheet(name=> $name, sheetName=>$sheetName, isVisible=>$isVisible);
if($response->{'Status'} eq 'OK'){
#download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeCellsCloud::CellsApi;
use AsposeCellsCloud::ApiClient;
use AsposeCellsCloud::Configuration;
use AsposeCellsCloud::Object::Worksheet;
my $configFile = '../Config/config.json';
my $configPropsText = read_file($configFile);
my $configProps = decode_json($configPropsText);
my $data_path = '../../../Data/';
my $out_path = $configProps->{'out_folder'};
$AsposeCellsCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeCellsCloud::Configuration::api_key = $configProps->{'api_key'};
$AsposeCellsCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $configProps->{'app_sid'};
$AsposeStorageCloud::Configuration::api_key = $configProps->{'api_key'};
# Instantiate Aspose.Storage and Aspose.Cells API SDK
my $storageApi = AsposeStorageCloud::StorageApi->new();
my $cellsApi = AsposeCellsCloud::CellsApi->new();
# Set input file name
my $name = 'Sample_Test_Book.xls';
my $sheetName = 'Sheet1';
my @worksheetBody = AsposeCellsCloud::Object::Worksheet->new('Type' => 'Worksheet', 'Name'=> 'Sheet1', 'IsGridlinesVisible', 'True');
# Upload file to aspose cloud storage
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);
# Invoke Aspose.Cells Cloud SDK API to update properties of a worksheet
$response = $cellsApi->PostUpdateWorksheetProperty(name=> $name, sheetName=>$sheetName, body=>@worksheetBody);
if($response->{'Status'} eq 'OK'){
# Download updated Workbook from storage server
my $output_file = $out_path. $name;
$response = $storageApi->GetDownload(Path => $name);;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment