A
A
amsmurff2020-10-15 19:46:36
excel
amsmurff, 2020-10-15 19:46:36

How to import data from specified excel file into windows forms c#?

On the Internet, I only find how to display a table with a file selection on a computer, but how can I make the table already displayed when opening the form?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2020-10-15
@amsmurff

Open a file
open a page
Call the length of columns
Call the length of rows
create a nested loop
inside it read cell values
​​apparently enter it into a dataset, or just enter data into it right in place
Moreover, all libraries act exactly like this

H
HemulGM, 2020-10-15
@HemulGM

COM

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question