from aspose.cells import Workbook # For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET # The path to the documents directory. dataDir = RunExamples.GetDataDir(".") # Define the first source # Open the first excel file. SourceBook1 = Workbook(dataDir + "SampleChart.xlsx") # Define the second source book. # Open the second excel file. SourceBook2 = Workbook(dataDir + "SampleImage.xlsx") # Combining the two workbooks SourceBook1.combine(SourceBook2) dataDir = dataDir + "Combined.out.xlsx" # Save the target book file. SourceBook1.save(dataDir)