3
Answers

How to add excelfile in resources, retrieve data from them

Vasu Gadhiya

Vasu Gadhiya

11y
1.3k
1
I used ExcelFile For data.

I write some data in excel.

Now i publish Project from Build menu and install in other pc, but data cant retrieve,

When i give this path

D:/list.xlsx and put file in d drive its completely Work,

-----
So i want to add file in resource.

But i cant retrieve data from them..

object o = pro2.Properties.Resources.list;

but it cant accept in connection String.

Any Other Way that i can merge Excel file in Setup and retrieve data. 

-------------------------
Thanks in advance


Answers (3)