Click here to Skip to main content
15,924,402 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have some data base in excel sheet.A test script written in c# runs in a test environment. however i want to access the data in excel sheet when test script is running. is it possible?. please share if you have any input.

What I have tried:

currently test script in C# is working.
Posted
Updated 3-May-16 3:13am
Comments
ZurdoDev 3-May-16 7:00am    
Anything is possible when you can write code. Google for c# excel and you'll find lots of examples. Or be more specific and perhaps we can be too.

1 solution

You can treat a spreadsheet like it was a table in a database:

Excel connection strings - ConnectionStrings.com[^]

There are many other sources for connection strings.

Look up C#'s ODBC and ADO connection objects.


One hint I can supply to you: this works much better if the data in the spreadsheet is laid out nicely (like a table in a database) and not as though columns weren't typed.

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900