Android API to merge multiple Excel files into a file.
Android library to merge multi Excel files into a file.
Merge multiple Excel files into a file - Android REST API
API Request:
POST
https://api.aspose.cloud/v3.0/cells/merge
Merging multiple Excel files into a file is a complex task. Merging multiple Excel files into a file transitions is performed by our Android SDK while maintaining the source spreadsheet's main structural and logical content. Our Android library is a professional solution to merge multiple Excel files into a file online. This Cloud SDK gives Android developers powerful functionality and perfect API.
Code example in Android using REST API to merge multiple Excel files into a file
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 AssemblyTestXlsx = "assemblytest.xlsx"; | |
String DataSourceXlsx = "datasource.xlsx"; | |
HashMap<String,File> fileMap = new HashMap<String,File>(); | |
fileMap.put(AssemblyTestXlsx , new File("C:\\TestData\\" + AssemblyTestXlsx)); | |
fileMap.put(DataSourceXlsx , new File("C:\\TestData\\" + DataSourceXlsx) ); | |
FilesResult response = api.postMerge(fileMap,"pdf",false,false); | |
} catch (ApiException e) { | |
// TODO Auto-generated catch block | |
e.printStackTrace(); | |
} | |
How to use Java API to merge
- Create an account at Dashboard to get free API quota & authorization details
- Initialize CellsApi with Client Id, Client Secret, Base URL & API version
- Call postMerge method to get the resultant stream
System Requirements
- Android 7 or newer
- Java(TM) SE Runtime Environment