0

I am trying to convert the data I already have in a Worksheet in to a DataTable using ClosedXML but I cannot find an overload method for what I need.

This is the code that I am trying:

NewWorksheet.Cell(1, 1).InsertTable();

The closest overload method is the single with an IEnumerable or DataTable but what would I put in there? There is no overload method that takes a range.

Here is the documentation page but nothing meets my need.

djblois
  • 963
  • 1
  • 17
  • 52

1 Answers1

0

InsertTable inserts an existing DataTable into the spreadsheet. You want to do the reverse. That's not possible in ClosedXML.

Francois Botha
  • 4,520
  • 1
  • 34
  • 46