//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); //Use XlsxOpenOptions.ImportFlags to control what you want to import from excel, ImportFlags.Data means only the data will be imported //Change the path to the real file path when open. XlsxOpenOptions options = new XlsxOpenOptions { ImportFlags = ImportFlags.Data }; workbook.Open("source.xlsx", options);
' Create a new Workbook Dim workbook As New Workbook 'Use XlsxOpenOptions.ImportFlags to control what you want to import from excel, ImportFlags.Data means only the data will be imported 'Change the path to the real file path when open. Dim options As New XlsxOpenOptions With { .ImportFlags = ImportFlags.Data } workbook.Open("source.xlsx", options)