// Create a new workbook Workbook workbook = new Workbook(); //XlsxOpenOptions.DoNotAutoFitAfterOpened as true means Document Solutions for Excel will not autofit the row height after //opening an Excel file. //Change the path to the real file path when open. XlsxOpenOptions options = new XlsxOpenOptions(); options.setDoNotAutoFitAfterOpened(true); workbook.open("source.xlsx", options);