How to add ExcelReaderFile.cs? | Selenium C# Forum
S
Swathi Posted on 25/06/2019

Hi, I am currently watching the video part-5 in datadriven framework, it doesn't show how to get excelreaderfile.cs in references? 

 

Currently, i have added npoi dll and not sure how to add excelreader.cs.

Please advise if there is different video or code to read excel file

 

Thanks,

Swathi


G
gunjan Replied on 25/06/2019

You will have to externally add the ExcelReaderFile.cs . It is not present in the References.

Browse to the location where you have saved your ExcelReaderFile.cs and then add it in your project.


S
Swathi Replied on 05/07/2019

Hi Gunjan,

Can you please share with me the ExcelReaderFile.cs that you have created?

Thanks


S
Swathi Replied on 05/07/2019

Though i have created my own, i have an issue with empty cell.(object reference not set to an instance)

 


S
Support Desk Replied on 15/07/2019

You can find the excel reader file in downloaded code.


G
gunjan Replied on 16/07/2019

Please make sure that you close the excel file while running your code.


S
Swathi Replied on 17/07/2019

please close this as i have resolved the issue

 

Thanks