Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to import the datas from excel to sql and if the datas are not available in excel file (ie) if the excel sheet is empty, it should display as "No datas are available in the selected file" when i click the upload button. Can anyone help me to find the length of the excel before it gets imported to sql. Thanks in advance.
Posted
Comments
Mehdi Gholam 10-Nov-11 5:27am    
What technology are you using for the Excel reading?

 
Share this answer
 
By size you can not predict your excel file is empty or not.
here[^] you can get the code to check if excel file is empty
 
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