Last active
September 11, 2017 19:16
-
-
Save aspose-cells/e6fd01c4bbf280df7d4b09796edd8d66 to your computer and use it in GitHub Desktop.
GISTs for Aspose.Cells for Cloud JAVA Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aspose.Cells for JAVA Examples |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ChangeCellStyleWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(ChangeCellStyleWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String cellName = "A2"; | |
String cellArea = "A1:C3"; | |
int index = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PutWorksheetFormatConditionArea(fileName, sheetName, index, cellArea, storage, folder, null) | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ChangeCellStyleWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(ChangeCellStyleWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String cellName = "A2"; | |
String cellArea = "A1:C3"; | |
int index = 0; | |
String operatortype = "Equal"; | |
String formula1 = "v1"; | |
String formula2 = "v2"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PutWorksheetFormatCondition(fileName, sheetName, index, type, operatortype, formula1, formula2, storage, folder, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ChangeCellStyleWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(ChangeCellStyleWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String cellName = "A2"; | |
String cellArea = "A1:C3"; | |
int index = 0; | |
String cellArea = "A1:C3"; | |
String type = "Expression"; | |
String operatortype = "Between"; | |
String formula1 = "v1"; | |
String formula2 = "v2"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PutWorksheetFormatCondition(fileName, sheetName, index, cellArea, type, operatortype, formula1, formula2, storage, folder, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ChangeCellStyleWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(ChangeCellStyleWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String cellName = "A2"; | |
com.aspose.cells.model.Style body = new com.aspose.cells.model.Style(); | |
com.aspose.cells.model.Font font = new com.aspose.cells.model.Font(); | |
font.setName("Calibri"); | |
font.setSize(40); | |
body.setFont(font); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostUpdateWorksheetCellStyle(input, sheetName, cellName, Utils.STORAGE, Utils.FOLDER, body); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ChangeCellStyleWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(ChangeCellStyleWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String cellName = "A2"; | |
String cellArea = "A1:C3"; | |
int index = 0; | |
String cellArea = "A1:C3"; | |
String type = "Expression"; | |
String operatortype = "Between"; | |
String formula1 = "v1"; | |
String formula2 = "v2"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteWorksheetConditionalFormattings(fileName, sheetName, storage, folder); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ClearCellContentStyleWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(ClearCellContentStyleWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String range = "A1:A10"; | |
Integer startRow = 1; | |
Integer startColumn = 1; | |
Integer endRow = 2; | |
Integer endColumn = 2; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostClearContents(input, sheetName, range, startRow, startColumn, endRow, endColumn, Utils.STORAGE, | |
Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ClearCellFormattingWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(ClearCellFormattingWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String range = "A1:A12"; | |
Integer startRow = null; | |
Integer startColumn = null; | |
Integer endRow = null; | |
Integer endColumn = null; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostClearFormats(input, sheetName, range, startRow, startColumn, endRow, endColumn, Utils.STORAGE, | |
Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ChangeCellStyleWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(ChangeCellStyleWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String cellName = "A2"; | |
String cellArea = "A1:C3"; | |
int index = 0; | |
String cellArea = "A1:C3"; | |
String type = "Expression"; | |
String operatortype = "Between"; | |
String formula1 = "v1"; | |
String formula2 = "v2"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.cellsApi.GetWorksheetConditionalFormattings(fileName, sheetName, storage, folder); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ChangeCellStyleWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(ChangeCellStyleWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String cellName = "A2"; | |
String cellArea = "A1:C3"; | |
int index = 0; | |
String cellArea = "A1:C3"; | |
String type = "Expression"; | |
String operatortype = "Between"; | |
String formula1 = "v1"; | |
String formula2 = "v2"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.GetWorksheetConditionalFormatting(fileName, sheetName, storage, folder); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetCellStyleWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String cellName = "a1"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.StyleResponse apiResponse = cellsApi.GetWorksheetCellStyle(input, sheetName, | |
cellName, Utils.STORAGE, Utils.FOLDER); | |
System.out.println("Cell Style Font :: " + apiResponse.getStyle().getFont().getName()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetCellWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String cellOrMethodName = "a1"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.CellResponse apiResponse = cellsApi.GetWorksheetCell(input, sheetName, | |
cellOrMethodName, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.cells.model.Cell cell = apiResponse.getCell(); | |
System.out.println("Cell Name :: " + cell.getName()); | |
System.out.println("Cell Value :: " + cell.getValue()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetEndCellWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String cellOrMethodName = "endcell"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.CellResponse apiResponse = cellsApi.GetWorksheetCell(input, sheetName, | |
cellOrMethodName, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.cells.model.Cell cell = apiResponse.getCell(); | |
System.out.println("Cell Name :: " + cell.getName()); | |
System.out.println("Cell Value :: " + cell.getValue()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetFirstCellWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String cellOrMethodName = "firstcell"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.CellResponse apiResponse = cellsApi.GetWorksheetCell(input, sheetName, | |
cellOrMethodName, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.cells.model.Cell cell = apiResponse.getCell(); | |
System.out.println("Cell Name :: " + cell.getName()); | |
System.out.println("Cell Value :: " + cell.getValue()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetMaxColumnWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String cellOrMethodName = "maxcolumn"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
Integer apiResponse = cellsApi.GetWorksheetCellProperty(input, sheetName, cellOrMethodName, Utils.STORAGE, | |
Utils.FOLDER); | |
System.out.println(" MaxColumn :: " + apiResponse); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetMaxDataColumnWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String cellOrMethodName = "maxdatacolumn"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
Integer apiResponse = cellsApi.GetWorksheetCellProperty(input, sheetName, cellOrMethodName, Utils.STORAGE, | |
Utils.FOLDER); | |
System.out.println(" MaxDataColumn :: " + apiResponse); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetMaxDataRowWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String cellOrMethodName = "maxdatarow"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
Integer apiResponse = cellsApi.GetWorksheetCellProperty(input, sheetName, cellOrMethodName, Utils.STORAGE, | |
Utils.FOLDER); | |
System.out.println(" MaxDataRow :: " + apiResponse); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetMaxRowWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String cellOrMethodName = "maxrow"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
Integer apiResponse = cellsApi.GetWorksheetCellProperty(input, sheetName, cellOrMethodName, Utils.STORAGE, | |
Utils.FOLDER); | |
System.out.println(" MaxRow :: " + apiResponse); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetMergedCellWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
Integer mergedCellIndex = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.MergedCellResponse apiResponse = cellsApi.GetWorkSheetMergedCell(input, sheetName, | |
mergedCellIndex, Utils.STORAGE, Utils.FOLDER); | |
System.out.println("Merge Start Column :: " + apiResponse.getMergedCell().getStartColumn()); | |
System.out.println("Merge End Column :: " + apiResponse.getMergedCell().getEndColumn()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetMinColumnWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String cellOrMethodName = "mincolumn"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
Integer apiResponse = cellsApi.GetWorksheetCellProperty(input, sheetName, cellOrMethodName, Utils.STORAGE, | |
Utils.FOLDER); | |
System.out.println(" MinColumn :: " + apiResponse); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetMinDataColumnWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String cellOrMethodName = "mindatacolumn"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
Integer apiResponse = cellsApi.GetWorksheetCellProperty(input, sheetName, cellOrMethodName, Utils.STORAGE, | |
Utils.FOLDER); | |
System.out.println(" MinDataColumn :: " + apiResponse); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetMinDataRowWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String cellOrMethodName = "mindatarow"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
Integer apiResponse = cellsApi.GetWorksheetCellProperty(input, sheetName, cellOrMethodName, Utils.STORAGE, | |
Utils.FOLDER); | |
System.out.println(" MaxDataRow :: " + apiResponse); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetMinRowWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String cellOrMethodName = "minrow"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
Integer apiResponse = cellsApi.GetWorksheetCellProperty(input, sheetName, cellOrMethodName, Utils.STORAGE, | |
Utils.FOLDER); | |
System.out.println(" MinRow :: " + apiResponse); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(MergeCellsWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(MergeCellsWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer startRow = 1; | |
Integer startColumn = 0; | |
Integer totalRows = 1; | |
Integer totalColumns = 5; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostWorksheetMerge(input, sheetName, startRow, startColumn, totalRows, totalColumns, Utils.STORAGE, | |
Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ChangeCellStyleWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(ChangeCellStyleWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String cellName = "A2"; | |
String cellArea = "A1:C3"; | |
int startRow = 3; | |
int startColumn = 3; | |
int totalRows = 1; | |
int totalColumns = 1; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteWorksheetConditionalFormattingArea(fileName, sheetName, startRow, startColumn, totalRows, totalColumns, null, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ChangeCellStyleWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(ChangeCellStyleWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String cellName = "A2"; | |
String cellArea = "A1:C3"; | |
int startRow = 3; | |
int startColumn = 3; | |
int totalRows = 1; | |
int totalColumns = 1; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteWorksheetConditionalFormatting(fileName, sheetName, startRow, startColumn, totalRows, totalColumns, null, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(SetCellWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(SetCellWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String cellName = "a1"; | |
String value = "99"; | |
String type = "int"; | |
String formula = ""; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostWorksheetCellSetValue(input, sheetName, cellName, value, type, formula, Utils.STORAGE, | |
Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(SetFormulaForCellWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(SetFormulaForCellWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String cellName = "A12"; | |
String value = ""; | |
String type = "int"; | |
String formula = "sum(a5:a10)"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostWorksheetCellSetValue(input, sheetName, cellName, value, type, formula, Utils.STORAGE, | |
Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(SetRangeValueWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(SetRangeValueWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String cellarea = "A10:B20"; | |
String value = "1234"; | |
String type = "int"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostSetCellRangeValue(input, sheetName, cellarea, value, type, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(UnmergeCellsWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(UnmergeCellsWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer startRow = 1; | |
Integer startColumn = 0; | |
Integer totalRows = 1; | |
Integer totalColumns = 5; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostWorksheetUnmerge(input, sheetName, startRow, startColumn, totalRows, totalColumns, | |
Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Sample_Test_Book.xls"; | |
String sheetName = "Sheet6"; | |
String chartType = "bar"; | |
int upperLeftRow = 12; | |
int upperLeftColumn = 12; | |
int lowerRightRow = 20; | |
int lowerRightColumn = 20; | |
String area = "A1:A3"; | |
Boolean isVertical = false; | |
String categoryData = ""; | |
Boolean isAutoGetSerialName = true; | |
String title = "SalesState"; | |
String storage = ""; | |
String folder = ""; | |
Path inputFile = Utils.getPath(AddChart.class, "Sample.xlsx"); | |
try { | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to add chart in worksheet | |
ChartsResponse apiResponse = cellsApi.PutWorksheetAddChart(fileName, sheetName, chartType, upperLeftRow, | |
upperLeftColumn, lowerRightRow, lowerRightColumn, area, isVertical, categoryData, | |
isAutoGetSerialName, title, storage, folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("OK")) { | |
System.out.println("Add a Chart in a Worksheet, Done!"); | |
} | |
} catch (Exception ex) { | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
Path inputFile = Utils.getPath(ConvertChartToImage.class, "Sample.xlsx"); | |
Path outputFile = Utils.getPath(ConvertChartToImage.class, "Chart.png"); | |
storageApi.PutCreate(inputFile.getFileName().toString(), null, Utils.STORAGE, inputFile.toFile()); | |
ResponseMessage cr = cellsApi.GetWorksheetChartWithFormat(inputFile.getFileName().toString(), "Sheet1", 0, | |
"png", Utils.STORAGE, Utils.FOLDER); | |
Files.copy(cr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(DeleteAllCharts.class, input); | |
Path outputFile = Utils.getPath(DeleteAllCharts.class, output); | |
String sheet = "Sheet1"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteWorksheetClearCharts(input, sheet, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(DeleteChartTitle.class, input); | |
Path outputFile = Utils.getPath(DeleteChartTitle.class, output); | |
String sheet = "Sheet1"; | |
Integer chartIndex = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteWorksheetChartTitle(input, sheet, chartIndex, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(DeleteOneChart.class, input); | |
Path outputFile = Utils.getPath(DeleteOneChart.class, output); | |
String sheet = "Sheet1"; | |
Integer chartIndex = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteWorksheetDeleteChart(input, sheet, chartIndex, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetChart.class, input); | |
String sheet = "Sheet1"; | |
int chart = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.ChartResponse r = cellsApi.GetWorksheetChart(input, sheet, chart, Utils.STORAGE, | |
Utils.FOLDER); | |
System.out.println("Name: " + r.getChart().getName()); | |
System.out.println("Type: " + r.getChart().getType()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetChartArea.class, input); | |
String sheet = "Sheet1"; | |
int chartIndex = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.ChartAreaResponse apiResponse = cellsApi.GetChartArea(input, sheet, chartIndex, | |
Utils.STORAGE, Utils.FOLDER); | |
System.out.println("Area X: " + apiResponse.getChartArea().getX()); | |
System.out.println("Area Y: " + apiResponse.getChartArea().getY()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetChartFillFormat.class, input); | |
String sheet = "Sheet1"; | |
int chartIndex = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.FillFormatResponse apiResponse = cellsApi.GetChartAreaFillFormat(input, sheet, | |
chartIndex, Utils.STORAGE, Utils.FOLDER); | |
System.out.println("ChatArea FillFormat Type :: " + apiResponse.getFillFormat().getType()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetChartLegend.class, input); | |
String sheet = "Sheet1"; | |
int chartIndex = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.LegendResponse apiResponse = cellsApi.GetWorksheetChartLegend(input, sheet, | |
chartIndex, Utils.STORAGE, Utils.FOLDER); | |
System.out.println("Chart Legend Position :: " + apiResponse.getLegend().getPosition()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(HideChartLegend.class, input); | |
Path outputFile = Utils.getPath(HideChartLegend.class, output); | |
String sheet = "Sheet1"; | |
Integer chartIndex = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteWorksheetChartLegend(input, sheet, chartIndex, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(SetChartTitle.class, input); | |
Path outputFile = Utils.getPath(SetChartTitle.class, output); | |
String sheet = "Sheet1"; | |
Integer chartIndex = 0; | |
com.aspose.cells.model.Title body = new com.aspose.cells.model.Title(); | |
body.setHeight(15); | |
body.setText("aspose"); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PutWorksheetChartTitle(input, sheet, chartIndex, Utils.STORAGE, Utils.FOLDER, body); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(ShowChartLegend.class, input); | |
Path outputFile = Utils.getPath(ShowChartLegend.class, output); | |
String sheet = "Sheet1"; | |
Integer chartIndex = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PutWorksheetChartLegend(input, sheet, chartIndex, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(UpdateChartLegend.class, input); | |
Path outputFile = Utils.getPath(UpdateChartLegend.class, output); | |
String sheet = "Sheet1"; | |
Integer chartIndex = 0; | |
com.aspose.cells.model.Legend body = new com.aspose.cells.model.Legend(); | |
body.setHeight(15); | |
body.setPosition("Left"); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostWorksheetChartLegend(input, sheet, chartIndex, Utils.STORAGE, Utils.FOLDER, body); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(UpdateChartTitle.class, input); | |
Path outputFile = Utils.getPath(UpdateChartTitle.class, output); | |
String sheet = "Sheet1"; | |
Integer chartIndex = 0; | |
com.aspose.cells.model.Title body = new com.aspose.cells.model.Title(); | |
body.setHeight(15); | |
body.setText("asposeAlpha"); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PutWorksheetChartTitle(input, sheet, chartIndex, Utils.STORAGE, Utils.FOLDER, body); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
public static final String apiKey = "a165298dc077f8852d5eb6e5bf49310d"; | |
public static final String appSID = "1c7a12ca-efa8-466e-b83d-234d9d5e2309"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
String storage = null; | |
String folder = null; | |
try | |
{ | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
Path inputFile = Utils.getPath(DeleteFilterForFilterColumnExample.class, "Sample.xlsx"); | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter | |
SaaSposeResponse apiResponse = cellsApi.PutWorksheetDateFilter(fileName, sheetName, "range=A1:B1&fieldIndex=0&dateTimeGroupingType=Year&year=1920&refresh=true", storage, folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("Ok")) | |
{ | |
System.out.println("Get worksheet autofilter, Done!"); | |
} | |
} | |
catch (Exception ex) | |
{ | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
String storage = null; | |
String folder = null; | |
try | |
{ | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
Path inputFile = Utils.getPath(AddFilterToFilterColumnExample.class, "Sample.xlsx"); | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter | |
SaaSposeResponse apiResponse = cellsApi.PutWorksheetAutoFilter(fileName, sheetName, "range=A1:B1&fieldIndex=0&criteria=Year", null, null); | |
if (apiResponse != null && apiResponse.getStatus().equals("Ok")) | |
{ | |
System.out.println("Get worksheet autofilter, Done!"); | |
} | |
} | |
catch (Exception ex) | |
{ | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
String storage = null; | |
String folder = null; | |
try { | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
Path inputFile = Utils.getPath(DeleteFilterForFilterColumnExample.class, "Sample.xlsx"); | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter | |
SaaSposeResponse apiResponse = cellsApi.PutWorksheetIconFilter(fileName, sheetName, | |
"range=A1:B1&fieldIndex=0&iconSetType=ArrowsGray3&iconId=1", storage, folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("Ok")) { | |
System.out.println("Get worksheet autofilter, Done!"); | |
} | |
} catch (Exception ex) { | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
String storage = null; | |
String folder = null; | |
try | |
{ | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
Path inputFile = Utils.getPath(DeleteFilterForFilterColumnExample.class, "Sample.xlsx"); | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter | |
SaaSposeResponse apiResponse = cellsApi.DeleteWorksheetAutoFilter(fileName, sheetName, "fieldIndex=0&criteria=Year", storage, folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("Ok")) | |
{ | |
System.out.println("Get worksheet autofilter, Done!"); | |
} | |
} | |
catch (Exception ex) | |
{ | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
String storage = null; | |
String folder = null; | |
try | |
{ | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
Path inputFile = Utils.getPath(DeleteFilterForFilterColumnExample.class, "Sample.xlsx"); | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter | |
SaaSposeResponse apiResponse = cellsApi.DeleteWorksheetDateFilter(fileName, sheetName, "fieldIndex=0&dateTimeGroupingType=Year&year=1920", storage, folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("Ok")) | |
{ | |
System.out.println("Get worksheet autofilter, Done!"); | |
} | |
} | |
catch (Exception ex) | |
{ | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
String storage = null; | |
String folder = null; | |
try | |
{ | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
Path inputFile = Utils.getPath(DeleteFilterForFilterColumnExample.class, "Sample.xlsx"); | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter | |
SaaSposeResponse apiResponse = cellsApi.PutWorksheetCustomFilter(fileName, sheetName, "range=A1:B1&fieldIndex=0&operatorType1=LessOrEqual&criteria1=1", storage, folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("Ok")) | |
{ | |
System.out.println("Get worksheet autofilter, Done!"); | |
} | |
} | |
catch (Exception ex) | |
{ | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
String storage = null; | |
String folder = null; | |
try | |
{ | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
Path inputFile = Utils.getPath(DeleteFilterForFilterColumnExample.class, "Sample.xlsx"); | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter | |
SaaSposeResponse apiResponse = cellsApi.PutWorksheetDynamicFilter(fileName, sheetName, "range=A1:B1&fieldIndex=0&dynamicFilterType=BelowAverage&matchBlanks=true", storage, folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("Ok")) | |
{ | |
System.out.println("Get worksheet autofilter, Done!"); | |
} | |
} | |
catch (Exception ex) | |
{ | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
String storage = null; | |
String folder = null; | |
try { | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
Path inputFile = Utils.getPath(DeleteFilterForFilterColumnExample.class, "Sample.xlsx"); | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter | |
SaaSposeResponse apiResponse = cellsApi.PutWorksheetFilterTop10(fileName, sheetName, | |
"range=A1:B1&fieldIndex=0&isTop=true&itemCount=1&isPercent=true&matchBlanks=true", storage, folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("Ok")) { | |
System.out.println("Get worksheet autofilter, Done!"); | |
} | |
} catch (Exception ex) { | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
String storage = null; | |
String folder = null; | |
try | |
{ | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
Path inputFile = Utils.getPath(GetAutoFilterDescriptionExample.class, "Sample.xlsx"); | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter | |
AutoFilterRespnse apiResponse = cellsApi.GetWorksheetAutoFilter(fileName, sheetName, storage, folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("Ok")) | |
{ | |
System.out.println("Get worksheet autofilter, Done!"); | |
} | |
} | |
catch (Exception ex) | |
{ | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
String storage = null; | |
String folder = null; | |
try { | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
Path inputFile = Utils.getPath(DeleteFilterForFilterColumnExample.class, "Sample.xlsx"); | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter | |
SaaSposeResponse apiResponse = cellsApi.PostWorksheetMatchBlanks(fileName, sheetName,0, storage, | |
folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("Ok")) { | |
System.out.println("Get worksheet autofilter, Done!"); | |
} | |
} catch (Exception ex) { | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
String storage = null; | |
String folder = null; | |
try { | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
Path inputFile = Utils.getPath(DeleteFilterForFilterColumnExample.class, "Sample.xlsx"); | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter | |
SaaSposeResponse apiResponse = cellsApi.PostWorksheetMatchNonBlanks(fileName, sheetName,0, storage, | |
folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("Ok")) { | |
System.out.println("Get worksheet autofilter, Done!"); | |
} | |
} catch (Exception ex) { | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
String storage = null; | |
String folder = null; | |
try { | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
Path inputFile = Utils.getPath(DeleteFilterForFilterColumnExample.class, "Sample.xlsx"); | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet autofilter | |
SaaSposeResponse apiResponse = cellsApi.PostWorksheetAutoFilterRefresh(fileName, sheetName, storage, | |
folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("Ok")) { | |
System.out.println("Get worksheet autofilter, Done!"); | |
} | |
} catch (Exception ex) { | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(AddHyperlinkWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(AddHyperlinkWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer firstRow = 2; | |
Integer firstColumn = 2; | |
Integer totalRows = 2; | |
Integer totalColumns = 2; | |
String address = "http://www.aspose.com/cloud/total-api.aspx"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PutWorkSheetHyperlink(input, sheetName, firstRow, firstColumn, totalRows, totalColumns, address, | |
Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(DeleteHyperlinkWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(DeleteHyperlinkWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer linkIndex = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteWorkSheetHyperlink(input, sheetName, linkIndex, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetHyperlinkWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
Integer linkIndex = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.HyperlinkResponse apiResponse = cellsApi.GetWorkSheetHyperlink(input, sheetName, | |
linkIndex, Utils.STORAGE, Utils.FOLDER); | |
System.out.println(" Link : " + apiResponse.getHyperlink().getAddress()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(UpdateHyperlinkWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(UpdateHyperlinkWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer hyperlinkIndex = 0; | |
com.aspose.cells.model.Hyperlink body = new com.aspose.cells.model.Hyperlink(); | |
body.setAddress("http://www.aspose.com/cloud/total-api.aspx"); | |
body.setTextToDisplay("Aspose Cloud APIs"); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostWorkSheetHyperlink(input, sheetName, hyperlinkIndex, Utils.STORAGE, Utils.FOLDER, body); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(AutoShapeToImageWorksheet.class, input); | |
String output = "ouput.png"; | |
Path outputFile = Utils.getPath(AutoShapeToImageWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer autoshapeNumber = 0; | |
String format = "png"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.ResponseMessage sr = cellsApi.GetWorksheetAutoshapeWithFormat(input, sheetName, | |
autoshapeNumber, format, Utils.STORAGE, Utils.FOLDER); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(AddOleObjectsWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(AddOleObjectsWorksheet.class, output); | |
String sourceFileName = "ole.docx"; | |
Path sourceFile = Utils.getPath(AddOleObjectsWorksheet.class, sourceFileName); | |
String imageFileName = "picture.png"; | |
Path imageFile = Utils.getPath(AddOleObjectsWorksheet.class, imageFileName); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
storageApi.PutCreate(sourceFileName, null, Utils.STORAGE, sourceFile.toFile()); | |
storageApi.PutCreate(imageFileName, null, Utils.STORAGE, imageFile.toFile()); | |
Integer upperLeftRow = null; | |
Integer upperLeftColumn = null; | |
Integer height = 200; | |
Integer width = 200; | |
String oleFile = sourceFileName; | |
com.aspose.cells.model.OleObject body = new com.aspose.cells.model.OleObject(); | |
body.setSourceFullName(sourceFileName); | |
body.setImageSourceFullName(imageFileName); | |
body.setUpperLeftRow(15); | |
body.setUpperLeftColumn(5); | |
body.setTop(10); | |
body.setBottom(10); | |
body.setLeft(10); | |
body.setHeight(200); | |
body.setWidth(200); | |
body.setIsAutoSize(true); | |
cellsApi.PutWorksheetOleObject(input, sheetName, upperLeftRow, upperLeftColumn, height, width, oleFile, | |
imageFileName, Utils.STORAGE, Utils.FOLDER, body); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ConvertOleObjectToImage.class, input); | |
String sheetName = "Sheet1"; | |
String output = "output.png"; | |
Path outputFile = Utils.getPath(ConvertOleObjectToImage.class, output); | |
Integer objectNumber = 0; | |
String format = "png"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.ResponseMessage sr = cellsApi.GetWorksheetOleObjectWithFormat(input, sheetName, | |
objectNumber, format, Utils.STORAGE, Utils.FOLDER); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(DeleteAllOleObjectsWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(DeleteAllOleObjectsWorksheet.class, output); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteWorksheetOleObjects(input, sheetName, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
// For complete examples and data files, please go to | |
// https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String fileName = "Embeded_OleObject_Sample_Book1.xlsx"; | |
String sheetName = "Sheet1"; | |
int oleObjectIndex = 0; | |
String storage = ""; | |
String folder = ""; | |
Path inputFile = Utils.getPath(DeleteSpecificOleObjectWorksheet.class, fileName); | |
try { | |
// Upload source file to aspose cloud storage | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to delete specific OleObject | |
// from excel worksheet | |
SaaSposeResponse apiResponse = cellsApi.DeleteWorksheetOleObject(fileName, sheetName, oleObjectIndex, | |
storage, folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("OK")) { | |
System.out.println("Delete a specific OleObject from Excel Worksheet, Done!"); | |
} | |
} catch (Exception ex) { | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(DeleteSpecificOleObjectWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(DeleteSpecificOleObjectWorksheet.class, output); | |
Integer objectNumber = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteWorksheetOleObject(input, sheetName, objectNumber, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetOleObjectWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
Integer objectNumber = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.OleObjectResponse apiResponse = cellsApi.GetWorksheetOleObject(input, sheetName, | |
objectNumber, Utils.STORAGE, Utils.FOLDER); | |
System.out.println(" Pivot Table: " + apiResponse.getOleObject().getFileFormatType()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(UpdateSpecificOleObjectsWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(UpdateSpecificOleObjectsWorksheet.class, output); | |
String sourceFileName = "ole.docx"; | |
Path sourceFile = Utils.getPath(UpdateSpecificOleObjectsWorksheet.class, sourceFileName); | |
String imageFileName = "picture.png"; | |
Path imageFile = Utils.getPath(UpdateSpecificOleObjectsWorksheet.class, imageFileName); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
storageApi.PutCreate(sourceFileName, null, Utils.STORAGE, sourceFile.toFile()); | |
storageApi.PutCreate(imageFileName, null, Utils.STORAGE, imageFile.toFile()); | |
String sheetName = "Sheet1"; | |
Integer oleObjectIndex = 0; | |
com.aspose.cells.model.OleObject body = new com.aspose.cells.model.OleObject(); | |
body.setSourceFullName(sourceFileName); | |
body.setImageSourceFullName(imageFileName); | |
body.setUpperLeftRow(15); | |
body.setUpperLeftColumn(5); | |
body.setTop(10); | |
body.setBottom(10); | |
body.setLeft(10); | |
body.setHeight(200); | |
body.setWidth(200); | |
body.setIsAutoSize(true); | |
cellsApi.PostUpdateWorksheetOleObject(input, sheetName, oleObjectIndex, Utils.STORAGE, Utils.FOLDER, body); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(AddPicturesWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(AddPicturesWorksheet.class, output); | |
String picture = "picture.png"; | |
Path pictureFile = Utils.getPath(AddPicturesWorksheet.class, picture); | |
String sheetName = "Sheet1"; | |
Integer upperLeftRow = 5; | |
Integer upperLeftColumn = 5; | |
Integer lowerRightRow = 10; | |
Integer lowerRightColumn = 10; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
storageApi.PutCreate(picture, null, Utils.STORAGE, pictureFile.toFile()); | |
cellsApi.PutWorksheetAddPicture(input, sheetName, upperLeftRow, upperLeftColumn, lowerRightRow, | |
lowerRightColumn, picture, Utils.STORAGE, Utils.FOLDER, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ConvertPictureToImageWorksheet.class, input); | |
String output = "output.png"; | |
Path outputFile = Utils.getPath(ConvertPictureToImageWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer pictureNumber = 0; | |
String format = "png"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
ResponseMessage sr = cellsApi.GetWorksheetPictureWithFormat(input, sheetName, pictureNumber, format, | |
Utils.STORAGE, Utils.FOLDER); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(DeleteAllPicturesWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(DeleteAllPicturesWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteWorkSheetPictures(input, sheetName, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(DeleteSpecificPictureWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(DeleteSpecificPictureWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer pictureIndex = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteWorksheetPicture(input, sheetName, pictureIndex, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetPictureWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
Integer pictureNumber = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.PictureResponse apiResponse = cellsApi.GetWorksheetPicture(input, sheetName, | |
pictureNumber, Utils.STORAGE, Utils.FOLDER); | |
System.out.println(" Picture : " + apiResponse.getPicture().getImageFormat()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(UpdateSpecificPictureWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(UpdateSpecificPictureWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer pictureIndex = 0; | |
com.aspose.cells.model.Picture body = new com.aspose.cells.model.Picture(); | |
body.setName("Updated Picture Name"); | |
body.setRotationAngle(90.0); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostWorkSheetPicture(input, sheetName, pictureIndex, Utils.STORAGE, Utils.FOLDER, body); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(AddPivotFieldInPivottable.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(AddPivotFieldInPivottable.class, output); | |
String sheetName = "Sheet1"; | |
Integer pivotTableIndex = 0; | |
String pivotFieldType = "Row"; | |
com.aspose.cells.model.PivotTableFieldRequest body = new com.aspose.cells.model.PivotTableFieldRequest(); | |
body.getData().add(1); | |
body.getData().add(1); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PutPivotTableField(input, sheetName, pivotTableIndex, pivotFieldType, Utils.STORAGE, Utils.FOLDER, | |
body); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(AddPivottableWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(AddPivottableWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
String sourceData = ""; | |
String destCellName = ""; | |
String tableName = ""; | |
Boolean useSameSource = true; | |
com.aspose.cells.model.CreatePivotTableRequest body = new com.aspose.cells.model.CreatePivotTableRequest(); | |
body.setName("MyPivot"); | |
body.setSourceData("A1:B4"); | |
body.setDestCellName("H20"); | |
body.setUseSameSource(true); | |
body.getPivotFieldRows().add(1); | |
body.getPivotFieldColumns().add(1); | |
body.getPivotFieldRows().add(1); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PutWorksheetPivotTable(input, sheetName, Utils.STORAGE, Utils.FOLDER, sourceData, destCellName, | |
tableName, useSameSource, body); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(DeleteWorksheetPivotTable.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(DeleteWorksheetPivotTable.class, output); | |
String sheetName = "Sheet1"; | |
storageApi.PutCreate(input, null, null, inputFile.toFile()); | |
cellsApi.DeleteWorksheetPivotTables(input, sheetName, null, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(DeleteWorksheetPivotTableIndex.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(DeleteWorksheetPivotTableIndex.class, output); | |
Integer pivotTableIndex = 0; | |
String sheetName = "Sheet1"; | |
storageApi.PutCreate(input, null, null, inputFile.toFile()); | |
cellsApi.DeleteWorksheetPivotTable(input, sheetName, pivotTableIndex, null, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetPivotTableIndexWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
Integer pivottableIndex = 0; | |
storageApi.PutCreate(input, null, null, inputFile.toFile()); | |
com.aspose.cells.model.PivotTableResponse apiResponse = cellsApi.GetWorksheetPivotTable(input, sheetName, | |
pivottableIndex, null, null); | |
com.aspose.cells.model.PivotTable pivotTable = apiResponse.getPivotTable(); | |
System.out.println("Name" + pivotTable.getName()); | |
for (com.aspose.cells.model.PivotItem item : pivotTable.getBaseFields().get(0).getPivotItems()) { | |
System.out.println("Pivot Item Name :: " + item.getName()); | |
System.out.println("Pivot Item Value :: " + item.getValue()); | |
} | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetPivotTableWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
storageApi.PutCreate(input, null, null, inputFile.toFile()); | |
com.aspose.cells.model.PivotTablesResponse apiResponse = cellsApi.GetWorksheetPivotTables(input, sheetName, | |
null, null); | |
System.out.println(" Pivot Table " + apiResponse.getPivotTables().getClass().toString()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
String fileName = "Sample_Pivot_Table_Example.xls"; | |
String sheetName = "Sheet2"; | |
int pivottableIndex = 0; | |
String storage = ""; | |
String folder = ""; | |
Path inputFile = Utils.getPath(GetWorksheetPivotInfoByIndex.class, fileName); | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
// Upload source file to aspose cloud storage | |
storageApi.PutCreate(fileName, "", "", inputFile.toFile()); | |
// Invoke Aspose.Cells Cloud SDK API to get worksheet pivot table | |
// informations by index | |
PivotTableResponse apiResponse = cellsApi.GetWorksheetPivotTable(fileName, sheetName, pivottableIndex, | |
storage, folder); | |
if (apiResponse != null && apiResponse.getStatus().equals("OK")) { | |
PivotTable pivotTable = apiResponse.getPivotTable(); | |
System.out.println("Name" + pivotTable.getPivotTableStyleName()); | |
for (PivotItem item : pivotTable.getBaseFields().get(0).getPivotItems()) { | |
System.out.println("Pivot Item Name :: " + item.getName()); | |
System.out.println("Pivot Item Value :: " + item.getValue()); | |
} | |
System.out.println("Delete Row from a Worksheet, Done!"); | |
} | |
} catch (Exception ex) { | |
ex.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetAllProperties.class, input); | |
storageApi.PutCreate(input, Utils.STORAGE, null, inputFile.toFile()); | |
com.aspose.cells.model.CellsDocumentPropertiesResponse apiResponse = cellsApi.GetDocumentProperties(input, | |
Utils.STORAGE, null); | |
for (com.aspose.cells.model.CellsDocumentProperty docProperty : apiResponse.getDocumentProperties() | |
.getDocumentPropertyList()) { | |
System.out.println("Name: " + docProperty.getName()); | |
System.out.println("Value: " + docProperty.getValue()); | |
System.out.println("BuiltIn: " + docProperty.getBuiltIn()); | |
System.out.println(""); | |
} | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetParticularProperty.class, input); | |
String propertyName = "Author"; | |
storageApi.PutCreate(input, Utils.STORAGE, null, inputFile.toFile()); | |
com.aspose.cells.model.CellsDocumentPropertyResponse apiResponse = cellsApi.GetDocumentProperty(input, | |
propertyName, Utils.STORAGE, null); | |
System.out.println(" Author : " + apiResponse.getDocumentProperty().getValue()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(RemoveAllProperties.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(RemoveAllProperties.class, output); | |
storageApi.PutCreate(input, Utils.STORAGE, null, inputFile.toFile()); | |
cellsApi.DeleteDocumentProperties(input, Utils.STORAGE, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(RemoveParticularProperty.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(RemoveParticularProperty.class, output); | |
String propertyName = "Author"; | |
storageApi.PutCreate(input, Utils.STORAGE, null, inputFile.toFile()); | |
cellsApi.DeleteDocumentProperty(input, propertyName, Utils.STORAGE, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(SetParticularProperty.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(SetParticularProperty.class, output); | |
storageApi.PutCreate(input, Utils.STORAGE, null, inputFile.toFile()); | |
String propertyName = "Author"; | |
com.aspose.cells.model.CellsDocumentProperty body = new com.aspose.cells.model.CellsDocumentProperty(); | |
body.setName("AsposeAuthor"); | |
body.setValue("Aspose Plugin Developer"); | |
body.setBuiltIn("false"); | |
cellsApi.PutDocumentProperty(input, propertyName, Utils.STORAGE, Utils.FOLDER, body); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(AddEmptyRowInWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(AddEmptyRowInWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer rowIndex = 1; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.RowResponse apiResponse = cellsApi.PutInsertWorksheetRow(input, sheetName, rowIndex, | |
Utils.STORAGE, null); | |
System.out.println(" Row Href : " + apiResponse.getRow().getLink().getHref()); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(AutoFitRowsInWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(AutoFitRowsInWorksheet.class, output); | |
String password = ""; | |
Boolean isAutoFit = true; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.GetWorkBook(input, password, isAutoFit, null, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(CopyRowsInWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(CopyRowsInWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer sourceRowIndex = 1; | |
Integer destinationRowIndex = 2; | |
Integer rowNumber = 10; | |
String worksheet = "Sheet1"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostCopyWorksheetRows(input, sheetName, sourceRowIndex, destinationRowIndex, rowNumber, worksheet, | |
Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(DeleteRowFromWorksheet.class, input); | |
String output = "Sample2.xlsx"; | |
Path outputFile = Utils.getPath(DeleteRowFromWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer rowIndex = 1; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.SaaSposeResponse apiResponse = cellsApi.DeleteWorksheetRow(input, sheetName, | |
rowIndex, Utils.STORAGE, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetRowFromWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
Integer rowIndex = 1; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.RowResponse apiResponse = cellsApi.GetWorksheetRow(input, sheetName, rowIndex, | |
Utils.STORAGE, null); | |
System.out.println(" Row Href : " + apiResponse.getRow().getLink().getHref()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GroupRowsInWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(GroupRowsInWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer firstIndex = 1; | |
Integer lastIndex = 2; | |
Boolean hide = false; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostGroupWorksheetRows(input, sheetName, firstIndex, lastIndex, hide, Utils.STORAGE, Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(HideRowsInWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(HideRowsInWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer startrow = 1; | |
Integer totalRows = 1; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostHideWorksheetRows(input, sheetName, startrow, totalRows, null, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(UngroupRowsInWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(UngroupRowsInWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer firstIndex = 1; | |
Integer lastIndex = 2; | |
Boolean hide = false; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostUngroupWorksheetRows(input, sheetName, firstIndex, lastIndex, hide, Utils.STORAGE, | |
Utils.FOLDER); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(UnhideRowsInWorksheet.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(UnhideRowsInWorksheet.class, output); | |
String sheetName = "Sheet1"; | |
Integer startrow = 1; | |
Integer totalRows = 1; | |
Double height = 2.0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostUnhideWorksheetRows(input, sheetName, startrow, totalRows, height, null, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(FindTextWorkbook.class, input); | |
storageApi.PutCreate(input, null, null, inputFile.toFile()); | |
String text = "aspose"; | |
com.aspose.cells.model.TextItemsResponse apiResponse = cellsApi.PostWorkbooksTextSearch(input, text, | |
Utils.STORAGE, Utils.FOLDER); | |
for (com.aspose.cells.model.TextItem item : apiResponse.getTextItems().getTextItemList()) { | |
System.out.println("Text: " + item.getText()); | |
System.out.println("Href: " + item.getLink().getHref()); | |
System.out.println(""); | |
} | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(FindTextWorksheet.class, input); | |
storageApi.PutCreate(input, null, null, inputFile.toFile()); | |
String text = "aspose"; | |
String sheetName = "Sheet1"; | |
com.aspose.cells.model.TextItemsResponse apiResponse = cellsApi.PostWorkSheetTextSearch(input, sheetName, | |
text, Utils.STORAGE, Utils.FOLDER); | |
for (com.aspose.cells.model.TextItem item : apiResponse.getTextItems().getTextItemList()) { | |
System.out.println("Text: " + item.getText()); | |
System.out.println("Href: " + item.getLink().getHref()); | |
System.out.println(""); | |
} | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetTextItemWorkbook.class, input); | |
storageApi.PutCreate(input, null, null, inputFile.toFile()); | |
com.aspose.cells.model.TextItemsResponse apiResponse = cellsApi.GetWorkBookTextItems(input, null, null); | |
for (com.aspose.cells.model.TextItem item : apiResponse.getTextItems().getTextItemList()) { | |
System.out.println("Text: " + item.getText()); | |
System.out.println("Href: " + item.getLink().getHref()); | |
System.out.println(""); | |
} | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetTextItemWorksheet.class, input); | |
String sheetName = "Sheet1"; | |
storageApi.PutCreate(input, null, null, inputFile.toFile()); | |
com.aspose.cells.model.TextItemsResponse apiResponse = cellsApi.GetWorkSheetTextItems(input, sheetName, | |
null, null); | |
for (com.aspose.cells.model.TextItem item : apiResponse.getTextItems().getTextItemList()) { | |
System.out.println("Text: " + item.getText()); | |
System.out.println("Href: " + item.getLink().getHref()); | |
System.out.println(""); | |
} | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ReplaceTextWorkbook.class, input); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
String oldValue = "aspose"; | |
String newValue = "aspose.com"; | |
com.aspose.cells.model.WorkbookReplaceResponse apiResponse = cellsApi.PostWorkbooksTextReplace(input, | |
oldValue, newValue, Utils.STORAGE, Utils.FOLDER); | |
if (apiResponse != null && apiResponse.getStatus().equals("OK")) { | |
System.out.println("Matches: " + apiResponse.getMatches()); | |
} | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "sample1.xlsx"; | |
Path inputFile = Utils.getPath(ReplaceTextWorksheet.class, input); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
String oldValue = "aspose"; | |
String newValue = "aspose.com"; | |
String sheetName = "Sheet1"; | |
com.aspose.cells.model.WorksheetReplaceResponse apiResponse = cellsApi.PostWorsheetTextReplace(input, | |
sheetName, oldValue, newValue, Utils.STORAGE, Utils.FOLDER); | |
if (apiResponse != null && apiResponse.getStatus().equals("OK")) { | |
System.out.println("Matches: " + apiResponse.getMatches()); | |
} | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
Path inputFile = Utils.getPath(ConvertWorkbookToAnotherFormat.class, "Workbook1.xlsx"); | |
Path outputFile = Utils.getPath(ConvertWorkbookToAnotherFormat.class, "Workbook1.pdf"); | |
storageApi.PutCreate(inputFile.getFileName().toString(), null, Utils.STORAGE, inputFile.toFile()); | |
ResponseMessage cr = cellsApi.GetWorkBookWithFormat(inputFile.getFileName().toString(), "pdf", null, true, | |
Utils.STORAGE, Utils.FOLDER, null); | |
Files.copy(cr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
Path inputFile = Utils.getPath(ConvertWorkbookToAnotherFormatWithoutStorage.class, "Workbook1.xlsx"); | |
Path outputFile = Utils.getPath(ConvertWorkbookToAnotherFormatWithoutStorage.class, "Workbook1.pdf"); | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String format = "pdf"; | |
String password = ""; | |
String outPath = ""; | |
String xml = "<PdfSaveOptions>" + "<SaveFormat>pdf</SaveFormat>" + "<FileName>" | |
+ inputFile.getFileName().toString() + "</FileName>" + "<ImageCompression>Jpeg</ImageCompression>" | |
+ "<JpegQuality>70</JpegQuality>" + "<TextCompression>Flate</TextCompression>" | |
+ "</PdfSaveOptions>"; | |
ResponseMessage cr = cellsApi.PutConvertWorkBook(format, password, outPath, inputFile.toFile(), | |
xml.getBytes("UTF-8")); | |
Files.copy(cr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
Path inputFile = Utils.getPath(ConvertWorkbookWithAdditionalSettings.class, "Workbook1.xlsx"); | |
Path outputFile = Utils.getPath(ConvertWorkbookWithAdditionalSettings.class, "Workbook1.pdf"); | |
String format = "pdf"; | |
String password = ""; | |
String outPath = ""; | |
String xml = "<PdfSaveOptions>" + "<SaveFormat>pdf</SaveFormat>" + "<FileName>" | |
+ inputFile.getFileName().toString() + "</FileName>" + "<ImageCompression>Jpeg</ImageCompression>" | |
+ "<JpegQuality>70</JpegQuality>" + "<TextCompression>Flate</TextCompression>" | |
+ "</PdfSaveOptions>"; | |
ResponseMessage cr = cellsApi.PutConvertWorkBook(format, password, outPath, inputFile.toFile(), | |
xml.getBytes("UTF-8")); | |
Files.copy(cr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String output = "Sample-" + UUID.randomUUID().toString() + ".xlsx"; | |
Path outputFile = Utils.getPath(CreateEmptyWorkbook.class, output); | |
cellsApi.PutWorkbookCreate(output, null, null, Utils.STORAGE, null, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(output, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String template = "Designer.xlsx"; | |
Path templateFile = Utils.getPath(CreateWorkbookFromSmartMarkerTemplate.class, template); | |
String output = "output-" + UUID.randomUUID() + ".xlsx"; | |
Path outputFile = Utils.getPath(CreateWorkbookFromSmartMarkerTemplate.class, output); | |
String data = "ReportData.xml"; | |
Path dataFile = Utils.getPath(CreateWorkbookFromSmartMarkerTemplate.class, data); | |
storageApi.PutCreate(template, null, Utils.STORAGE, templateFile.toFile()); | |
storageApi.PutCreate(data, null, Utils.STORAGE, dataFile.toFile()); | |
cellsApi.PutWorkbookCreate(output, template, data, Utils.STORAGE, Utils.FOLDER, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(output, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String template = "Sample3.xls"; | |
Path templateFile = Utils.getPath(CreateWorkbookFromTemplate.class, template); | |
String output = "output-" + UUID.randomUUID() + ".xlsx"; | |
Path outputFile = Utils.getPath(CreateWorkbookFromTemplate.class, output); | |
storageApi.PutCreate(template, null, Utils.STORAGE, templateFile.toFile()); | |
cellsApi.PutWorkbookCreate(output, template, null, Utils.STORAGE, Utils.FOLDER, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(output, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(DecryptWorkbook.class, input); | |
Path outputFile = Utils.getPath(DecryptWorkbook.class, output); | |
com.aspose.cells.model.WorkbookEncryptionRequest properties = new com.aspose.cells.model.WorkbookEncryptionRequest(); | |
properties.setEncryptionType("XOR"); | |
properties.setPassword("12345678"); | |
properties.setKeyLength(128); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteDecryptDocument(input, Utils.STORAGE, null, properties); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(EncryptWorkbook.class, input); | |
Path outputFile = Utils.getPath(EncryptWorkbook.class, output); | |
com.aspose.cells.model.WorkbookEncryptionRequest properties = new com.aspose.cells.model.WorkbookEncryptionRequest(); | |
properties.setEncryptionType("XOR"); | |
properties.setPassword("12345678"); | |
properties.setKeyLength(128); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostEncryptDocument(input, Utils.STORAGE, null, properties); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(MergeWorkbooks.class, input); | |
Path outputFile = Utils.getPath(MergeWorkbooks.class, output); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
storageApi.PutCreate(output, null, Utils.STORAGE, outputFile.toFile()); | |
cellsApi.PostWorkbooksMerge(input, output, null, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(NamesCountWorkbook.class, input); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.NamesResponse np = cellsApi.GetWorkBookNames(input, null, null); | |
System.out.println(np.getNames().getCount()); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(ProtectWorkbook.class, input); | |
Path outputFile = Utils.getPath(ProtectWorkbook.class, output); | |
com.aspose.cells.model.WorkbookProtectionRequest properties = new com.aspose.cells.model.WorkbookProtectionRequest(); | |
properties.setPassword("12345678"); | |
properties.setProtectionType("All"); | |
storageApi.PutCreate(input, Utils.STORAGE, null, inputFile.toFile()); | |
cellsApi.PostProtectDocument(input, Utils.STORAGE, null, properties); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(RemoveModifyPassword.class, input); | |
Path outputFile = Utils.getPath(RemoveModifyPassword.class, output); | |
storageApi.PutCreate(input, Utils.STORAGE, null, inputFile.toFile()); | |
cellsApi.DeleteDocumentUnProtectFromChanges(input, null, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(SetModifyPassword.class, input); | |
Path outputFile = Utils.getPath(SetModifyPassword.class, output); | |
com.aspose.cells.model.PasswordRequest properties = new com.aspose.cells.model.PasswordRequest(); | |
properties.setPassword("aspose"); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PutDocumentProtectFromChanges(input, null, null, properties); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(SplitWorkbooks.class, input); | |
String output = "sample2.xlsx"; | |
Path outputFile = Utils.getPath(SplitWorkbooks.class, output); | |
String format = "png"; | |
Integer from = 0; | |
Integer to = 2; | |
Integer horizontalResolution = null; | |
Integer verticalResolution = null; | |
storageApi.PutCreate(input, Utils.STORAGE, null, inputFile.toFile()); | |
cellsApi.PostWorkbookSplit(input, format, from, to, horizontalResolution, verticalResolution, Utils.STORAGE, | |
null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(UnprotectWorkbook.class, input); | |
Path outputFile = Utils.getPath(UnprotectWorkbook.class, output); | |
com.aspose.cells.model.WorkbookProtectionRequest properties = new com.aspose.cells.model.WorkbookProtectionRequest(); | |
properties.setPassword("12345678"); | |
properties.setProtectionType("None"); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.DeleteUnProtectDocument(input, Utils.STORAGE, null, properties); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
Path inputFile = Utils.getPath(AddNewSheet.class, "Sample.xlsx"); | |
Path outputFile = Utils.getPath(AddNewSheet.class, "Sample2.xlsx"); | |
storageApi.PutCreate(inputFile.getFileName().toString(), null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PutAddNewWorksheet(inputFile.getFileName().toString(), "NewSheet", Utils.STORAGE, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(inputFile.getFileName().toString(), | |
null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(CalculateFormula.class, input); | |
String sheet = "Sheet1"; | |
String formula = "SUM(A1:A10)"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.SingleValueResponse r = cellsApi.GetWorkSheetCalculateFormula( | |
inputFile.getFileName().toString(), sheet, formula, Utils.STORAGE, null); | |
System.out.println("Result: " + r.getValue().getValue()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(ConvertWorksheetToImage.class, input); | |
String output = "output.png"; | |
Path outputFile = Utils.getPath(ConvertWorksheetToImage.class, output); | |
String sheetName = "Sheet1"; | |
String format = "png"; | |
Integer verticalResolution = null; | |
Integer horizontalResolution = null; | |
com.aspose.cells.model.ResponseMessage apiResponse = cellsApi.GetWorkSheetWithFormat(input, sheetName, | |
format, verticalResolution, horizontalResolution, Utils.STORAGE, Utils.FOLDER); | |
Files.copy(apiResponse.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(CopyWorksheet.class, input); | |
Path outputFile = Utils.getPath(CopyWorksheet.class, output); | |
String sourceSheet = "Sheet1"; | |
String copySheet = "Sheet2"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostCopyWorksheet(input, copySheet, sourceSheet, null, Utils.STORAGE); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
Path inputFile = Utils.getPath(DeleteWatermarkBackground.class, "Sample1.xlsx"); | |
Path outputFile = Utils.getPath(DeleteWatermarkBackground.class, "Sample2.xlsx"); | |
storageApi.PutCreate(inputFile.getFileName().toString(), null, Utils.STORAGE, inputFile.toFile()); | |
String sheetName = "Sheet1"; | |
cellsApi.DeleteWorkSheetBackground(inputFile.getFileName().toString(), sheetName, Utils.FOLDER, | |
Utils.STORAGE); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(inputFile.getFileName().toString(), | |
null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(DeleteWorksheet.class, input); | |
Path outputFile = Utils.getPath(DeleteWorksheet.class, output); | |
String sheet = "Sheet1"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.WorksheetsResponse wr = cellsApi.DeleteWorksheet(input, sheet, Utils.STORAGE, null); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
Path inputFile = Utils.getPath(FreezePanes.class, "Sample1.xlsx"); | |
Path outputFile = Utils.getPath(FreezePanes.class, "Sample2.xlsx"); | |
storageApi.PutCreate(inputFile.getFileName().toString(), null, Utils.STORAGE, inputFile.toFile()); | |
String sheetName = "Sheet1"; | |
Integer row = 1; | |
Integer column = 1; | |
Integer freezedRows = 1; | |
Integer freezedColumns = 1; | |
cellsApi.PutWorksheetFreezePanes(inputFile.getFileName().toString(), sheetName, row, column, freezedRows, | |
freezedColumns, Utils.FOLDER, Utils.STORAGE); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(inputFile.getFileName().toString(), | |
null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetAutoshape.class, input); | |
String sheet = "Sheet1"; | |
int autoshape = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.AutoShapeResponse ar = cellsApi | |
.GetWorksheetAutoshape(inputFile.getFileName().toString(), sheet, autoshape, Utils.STORAGE, null); | |
System.out.println("Autoshape HTML: " + ar.getAutoShape().getHtmlText()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetColumn.class, input); | |
String sheet = "Sheet1"; | |
int index = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.ColumnResponse r = cellsApi.GetWorksheetColumn(inputFile.getFileName().toString(), | |
sheet, index, Utils.STORAGE, null); | |
System.out.println("Column: " + r.getColumn().getLink().getHref()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetComment.class, input); | |
String sheet = "Sheet1"; | |
String cell = "A1"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.CommentResponse r = cellsApi.GetWorkSheetComment(inputFile.getFileName().toString(), | |
sheet, cell, Utils.STORAGE, null); | |
System.out.println("Comment: " + r.getComment().getNote()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(GetValidation.class, input); | |
String sheet = "Sheet1"; | |
int index = 0; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.ValidationResponse r = cellsApi | |
.GetWorkSheetValidation(inputFile.getFileName().toString(), sheet, index, Utils.STORAGE, null); | |
System.out.println("Validation Type: " + r.getValidation().getType()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
Path inputFile = Utils.getPath(GetWorksheetCount.class, "Sample.xlsx"); | |
storageApi.PutCreate(inputFile.getFileName().toString(), null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.WorksheetsResponse wr = cellsApi.GetWorkSheets(inputFile.getFileName().toString(), | |
Utils.STORAGE, null); | |
System.out.println("Count: " + wr.getWorksheets().getWorksheetList().size()); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(HideWorksheet.class, input); | |
Path outputFile = Utils.getPath(HideWorksheet.class, output); | |
String sheet = "Sheet1"; | |
boolean isVisible = false; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.WorksheetResponse wr = cellsApi.PutChangeVisibilityWorksheet(input, sheet, isVisible, | |
Utils.STORAGE, null); | |
System.out.println("Visibility Type: " + wr.getWorksheet().getVisibilityType()); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(MoveWorksheet.class, input); | |
Path outputFile = Utils.getPath(MoveWorksheet.class, output); | |
String sheet = "Sheet2"; | |
com.aspose.cells.model.WorksheetMovingRequest move = new com.aspose.cells.model.WorksheetMovingRequest(); | |
move.setDestinationWorksheet("Sheet5"); | |
move.setPosition("after"); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.WorksheetsResponse wr = cellsApi.PostMoveWorksheet(input, sheet, Utils.STORAGE, null, | |
move); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(RenameWorksheet.class, input); | |
Path outputFile = Utils.getPath(RenameWorksheet.class, output); | |
String oldName = "Sheet1"; | |
String newName = "Sheet2"; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostRenameWorksheet(input, oldName, newName, null, Utils.STORAGE); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
Path inputFile = Utils.getPath(SetWatermarkBackground.class, "Sample1.xlsx"); | |
Path outputFile = Utils.getPath(SetWatermarkBackground.class, "Sample2.xlsx"); | |
Path imageFile = Utils.getPath(SetWatermarkBackground.class, "aspose.png"); | |
storageApi.PutCreate(inputFile.getFileName().toString(), null, Utils.STORAGE, inputFile.toFile()); | |
String sheetName = "Sheet1"; | |
cellsApi.PutWorkSheetBackground(inputFile.getFileName().toString(), sheetName, Utils.FOLDER, Utils.STORAGE, | |
imageFile.toFile()); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(inputFile.getFileName().toString(), | |
null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
Path inputFile = Utils.getPath(SortWorksheetData.class, input); | |
String output = "Sample2.xlsx"; | |
Path outputFile = Utils.getPath(SortWorksheetData.class, output); | |
String sheetName = "Sheet1"; | |
String cellArea = "A1:A10"; | |
com.aspose.cells.model.SortKey sort = new com.aspose.cells.model.SortKey(); | |
sort.setKey(0); | |
sort.setSortOrder("descending"); | |
com.aspose.cells.model.DataSorter body = new com.aspose.cells.model.DataSorter(); | |
body.setCaseSensitive("false"); | |
body.setHasHeaders("false"); | |
body.setSortLeftToRight("false"); | |
body.getKeyList().add(sort); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostWorksheetRangeSort(input, sheetName, cellArea, Utils.STORAGE, Utils.FOLDER, body); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
Path inputFile = Utils.getPath(UnfreezePanes.class, "Sample1.xlsx"); | |
Path outputFile = Utils.getPath(UnfreezePanes.class, "Sample2.xlsx"); | |
storageApi.PutCreate(inputFile.getFileName().toString(), null, Utils.STORAGE, inputFile.toFile()); | |
String sheetName = "Sheet1"; | |
Integer row = 1; | |
Integer column = 1; | |
Integer freezedRows = 1; | |
Integer freezedColumns = 1; | |
cellsApi.DeleteWorksheetFreezePanes(inputFile.getFileName().toString(), sheetName, row, column, freezedRows, | |
freezedColumns, Utils.FOLDER, Utils.STORAGE); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(inputFile.getFileName().toString(), | |
null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(UnhideWorksheet.class, input); | |
Path outputFile = Utils.getPath(UnhideWorksheet.class, output); | |
String sheet = "Sheet1"; | |
boolean isVisible = true; | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
com.aspose.cells.model.WorksheetResponse wr = cellsApi.PutChangeVisibilityWorksheet(input, sheet, isVisible, | |
Utils.STORAGE, null); | |
System.out.println("Visibility Type: " + wr.getWorksheet().getVisibilityType()); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Cells-for-Cloud | |
try { | |
// Instantiate Aspose Storage API SDK | |
StorageApi storageApi = new StorageApi(Configuration.apiKey, Configuration.appSID, true); | |
// Instantiate Aspose Words API SDK | |
CellsApi cellsApi = new CellsApi(Configuration.apiKey, Configuration.appSID, true); | |
String input = "Sample1.xlsx"; | |
String output = "Sample2.xlsx"; | |
Path inputFile = Utils.getPath(UpdateWorksheetProperties.class, input); | |
Path outputFile = Utils.getPath(UpdateWorksheetProperties.class, output); | |
String sheet = "Sheet1"; | |
com.aspose.cells.model.Worksheet properties = new com.aspose.cells.model.Worksheet(); | |
properties.setType("Worksheet"); | |
properties.setName("Sheet1"); | |
properties.setIsGridlinesVisible(true); | |
properties.setIsPageBreakPreview(true); | |
properties.setIsRulerVisible(true); | |
storageApi.PutCreate(input, null, Utils.STORAGE, inputFile.toFile()); | |
cellsApi.PostUpdateWorksheetProperty(input, sheet, null, Utils.STORAGE, properties); | |
com.aspose.storage.model.ResponseMessage sr = storageApi.GetDownload(input, null, Utils.STORAGE); | |
Files.copy(sr.getInputStream(), outputFile, StandardCopyOption.REPLACE_EXISTING); | |
} | |
catch (Exception e) { | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment