We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Empty excel file

Thread ID:





44077 May 12,2006 12:05 PM UTC May 15,2006 10:51 AM UTC WinForms 1
Tags: XlsIO
Administrator [Syncfusion]
Asked On May 12, 2006 12:05 PM UTC

Hello I import data from excel using workbook.Worksheets[0.ExportDataTable, now the problem is with the empty excel files, could please tell me how can i test if the file to import from excel is empty or not, i''d like to prevent choosing empty files. Thanks in advance,

Administrator [Syncfusion]
Replied On May 15, 2006 10:51 AM UTC

Hi, Sorry for the delay in getting you. Please use the code below to detect whether a sheet contains data. sheet.UsedRange.IsBlank==true Please take a look at the attachment and let me know if you have any questions. EmptyDetector.zip BestRegards, Bharath


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon