Java API to clear duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet
Java Clear to clear duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet
Clear duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet - Java REST API
API Request:
POST
https://api.aspose.cloud/v3.0/cells/clear
Clearing duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet is a complex task. Clearing duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet transitions is performed by our Java SDK while maintaining the source spreadsheet's main structural and logical content. Our Java library is a professional solution to Clear duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet online. This Cloud SDK gives Java developers powerful functionality and perfect API.
Java code for clearing duplicate rows on local spreadsheets
This file contains 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-cloud/aspose-cells-cloud-java/ | |
try{ | |
LightCellsApi api = new LightCellsApi(System.getenv("CellsCloudTestClientId"),System.getenv("CellsCloudTestClientSecret"),"v3.0",System.getenv("CellsCloudTestApiBaseUrl")); | |
String remoteFolder = "TestData/"; | |
String localName = "Book1.xlsx"; | |
String remoteName = "Book1.xlsx"; | |
String AssemblyTestXlsx = "assemblytest.xlsx"; | |
String DataSourceXlsx = "datasource.xlsx"; | |
HashMap<String,File> fileMap = new HashMap<String,File>(); | |
fileMap.put(AssemblyTestXlsx , new File("D:\\TestData\\" + AssemblyTestXlsx)); | |
fileMap.put(DataSourceXlsx , new File("D:\\TestData\\" + DataSourceXlsx) ); | |
PostClearObjectsRequest request = new PostClearObjectsRequest(); | |
request.setFile(fileMap); | |
request.setObjecttype("DuplicateRows"); | |
request.setSheetname(""); | |
request.setOutFormat(""); | |
request.setPassword(""); | |
request.setCheckExcelRestriction(false); | |
FilesResult response = api.postClearObjects(request); | |
} catch (ApiException e) { | |
// TODO Auto-generated catch block | |
e.printStackTrace(); | |
} | |
How to use Java API to clear duplicate rows
- Create an account at Dashboard to get free API quota & authorization details
- Initialize CellsApi with Client Id, Client Secret, Base URL & API version
- Call postClearObjects method to get the resultant stream
System Requirements
- Android 7 or newer
- Java(TM) SE Runtime Environment