package com.aspose.cells.examples.loading_saving; import com.aspose.cells.*; import com.aspose.cells.examples.Utils; public class OpeningMicrosoftExcel2007XlsxFiles { public static void main(String[] args) throws Exception { // The path to the documents directory. String dataDir = Utils.getSharedDataDir(OpeningMicrosoftExcel2007XlsxFiles.class) + "loading_saving/"; String filePath = dataDir + "Book1.html"; // Opening Microsoft Excel 2007 XLSX Files. Createing and XLSX LoadOptions object LoadOptions loadOptions2 = new LoadOptions(FileFormatType.XLSX); // Creating an Workbook object with 2007 xlsx file path and the loadOptions object Workbook workbook4 = new Workbook(dataDir + "Book_Excel2007.xlsx", loadOptions2); // Print message System.out.println("Excel 2007 Workbook opened successfully."); } }