Combine Multiple Workbooks into a Single Workbook

Combining Workbooks

The example code combines two workbooks into a single workbook using Aspose.Cells for Java. The code loads the source workbooks, uses the Workbook.combine() method to combine them and saves the output workbook.

Source Workbooks

Output Workbooks

Screenshots

Below are screenshots of the source and output workbooks.

The first worksheet of the charts workbook - stacked

todo:image_alt_text

Second worksheet of charts workbook - line

todo:image_alt_text

First worksheet of the picture workbook - picture

todo:image_alt_text

All three worksheets in the combined workbook - stacked, line, picture

todo:image_alt_text

The following code snippet shows how to combine multiple workbooks into a single workbook.

Additional Resources

Advance topics