// 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(); }