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
Loading


Anubhav ChaudharyRank #29 · 42K reputationPosted Oct 24, 2013, 1:01 AM EDT
You can transfer your Project/Application from one system to another system along with it's database but on that system also you need to store it on any drive otherwise your connection string will start showing you error message. Understand it in this way:- "You have a car, for driving it you need to refuel it otherwise it will not be working, ya there is one way to drive it and that's by pushing it from behind."
Vasu GadhiyaRank #7,540 · 239 reputationPosted Oct 24, 2013, 2:51 AM EDT
i Write Complete Connection string.
Bu i want to merge excel sheet with EXE when i publish.
so no anyone can see excel file.
Ring ZhongRank #6,843 · 255 reputationPosted Oct 25, 2013, 12:23 AM EDT
http://stackoverflow.com/questions/15793442/how-to-read-data-from-excel-file-using-c-sharp
http://stackoverflow.com/questions/1426735/using-net-to-get-data-from-excel-as-a-database
http://support.microsoft.com/kb/316934
also you could try the third party excel .net component, hope it helps,
thank you