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.
Unfortunately, activation email could not send to your email. Please try again.

Empty excel file

Thread ID:

Created:

Updated:

Platform:

Replies:

44077 May 12,2006 08:05 AM May 15,2006 06:51 AM Windows Forms 1
loading
Tags: XlsIO
Administrator [Syncfusion]
Asked On May 12, 2006 08:05 AM

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 06:51 AM

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

CONFIRMATION

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.

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.

;