0

I'm attempting to use .asDataSet() with a configuration:

Dim x_config As New ExcelDataSetConfiguration
Dim table_config As New ExcelDataTableConfiguration With {
                                                            .UseHeaderRow = True
                                                         }
x_config.UseColumnDataType = True
x_config.ConfigureDataTable = table_config
'ERROR: Value of type 'ExcelDataTableConfiguration' &_
'cannot be converted to 'Func(Of IExcelDataReader, ExcelDataTableConfiguration)'.

basis_data = reader.AsDataSet(x_config)

What am I doing wrong here?

boop_the_snoot
  • 3,209
  • 4
  • 33
  • 44
dv3
  • 4,369
  • 5
  • 28
  • 50

1 Answers1

2

Change your ConfigureDataTable to this.

x_config.ConfigureDataTable = Function(tableReader) New ExcelDataTableConfiguration() With {
     .UseHeaderRow = True
    }
Ashish Emmanuel
  • 728
  • 11
  • 23