Writing specific datatable columns to excel

I want to write only certain columns from my datatable to the excel so how would i go about this? do i need to make another table out of the columns i need? - how would i take the columns from the table i have and put them to a new one?

have a look on the filter datatable Activity and also on the Column Setting part. Here you fetch out a new table using it for write range to Excel.

For more Custom cases we can have a look on solution approaches with Linq, Datatable.Select, DataTable.Default view…

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.