I do not want the formula results in the datagridview / dataset to display the formulas.
How does this work in the most efficient way? Without one for next loop?
With this code I get the strings and mixed formulas displayed.
- Code: Select all
Dim workbook As Workbook = New Workbook()
workbook.OpenPassword = "Password"
workbook.LoadFromFile("F:\File.xlsx", ExcelVersion.Version2010)
workbook.CalculateAllValue()
Dim sheet As Worksheet = workbook.Worksheets(1)
Me.DataGridView1.DataSource = sheet.ExportDataTable
sheet.Dispose()
workbook.Dispose()
Thanks for your effort and the examples.
Greetings