I got an excel file. I have uploaded the screenshot. I need to write a .NET application (console application) to parse the excel file. You can see a cell titled "Function Name". My .NET app should find that particular cell and read the contents in that column such as Template, InstanceFromTemplate, Task and so on. If it reads Task, it should call CreateTask function like Task(); If it reads InstanceFromTemplate, it should call InstanceFromTemplate function like TaskInstanceFromTemplate();
I have written code for those functions. I only need help on how to parse the excel sheet, go to that particular column, read the cells containing function names under that column and call that appropriate function. Any help would be appreciated.
Algorithm is like
- open excel file
- search for a header cell titled Function Name
- Read the first cell under the header cell
- If the first cell reads , call function (code for GetAllTemplate function is already there) Only need to call it afte finding it
- If the second cell , call function.
- Last cell under the header cell Function Name is reached. So, exit