Click here to Skip to main content
15,910,980 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Get data from excel sheet into Data table without using ODBC connection
Posted

 
Share this answer
 
Comments
bashar Haydar 25-Jul-11 5:32am    
http://www.aspspider.com/resources/Resource510.aspx
the probem is my visual studio didn'y accept the app.Workbooks.Open(path.....
 
Share this answer
 
Comments
bashar Haydar 25-Jul-11 5:34am    
OleDbCommand("SELECT `PATTERN` as PATTERN, `PLAN` as PLAN FROM [PATTERNS$]

the real problem here was i didn't undrstand Form[]Meaning Can u explain please
Prerak Patel 25-Jul-11 5:49am    
FROM [PATTERNS$] where PATTERNS is sheet name.
Hi
you can select excel file data using this query

C#
Select * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=" + excelFileName + ";HDR=no;imex=1','SELECT * FROM [" + sheet + "$" + excelStartoint + ":" + excelEndPoint + "]'


thanks,
 
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