2017-02-08 173 views

回答

-1

,你可以使用一個名爲 「閱讀Aspose」

Workbook sheet1= new Workbook("file1.xlsx"); 
    Workbook sheet2= new Workbook("file2.xlsx"); 
sheet1.combine(sheet2); 
sheet1.save("mergedFile.xlsx"); 

庫做到這一點,添加這種依賴關係到你的pom

<dependency> 
     <groupId>com.aspose</groupId> 
     <artifactId>aspose-cells</artifactId> 
    </dependency> 
相關問題