//create a new workbook var workbook = new GrapeCity.Documents.Excel.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 { DoNotAutoFitAfterOpened = true }; workbook.Open("source.xlsx", options);
' Create a new Workbook Dim workbook As 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. Dim options As New XlsxOpenOptions With { .DoNotAutoFitAfterOpened = True } workbook.Open("source.xlsx", options)