user3831886
user3831886

Reputation: 31

How can I select a set of rows and columns from an excel sheet in query for C#?

I want to select the following data from excel:

Rows : 3-7 Columns : C-W

How can I write a query to do this.

Thanks in advance.

Upvotes: 0

Views: 607

Answers (1)

Codeek
Codeek

Reputation: 1624

If I understood correctly, you are asking to get data from excel. Simple way would be (if not simplest) Load your Excel File sheets in DataSet's DataTable and then read the DataTable accordingly. Row index 0-6 and Column Index 2-22

here's how to load Excel in Dataset

Upvotes: 1

Related Questions