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(".") # Creating a file stream containing the Excel file to be opened fstream = open(dataDir + "book1.xls", "rb") # Instantiating a Workbook object # Opening the Excel file through the file stream workbook = Workbook(fstream) # Accessing the first worksheet in the Excel file worksheet = workbook.worksheets[0] # Setting the height of the second row to 13 worksheet.cells.set_row_height(1, 13) # Saving the modified Excel file workbook.save(dataDir + "output.out.xls") # Closing the file stream to free all resources fstream.close()