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.

Excel Sheet has wrong number of columns

Thread ID:





62507 Jun 15,2007 03:20 PM Jun 19,2007 08:46 AM Windows Forms 3
Tags: XlsIO
Brian Richards
Asked On June 15, 2007 03:20 PM

I'm trying to import the attached sheet but it doesn't get the last column. If i open the file in excel and resave it gets the column. Any ideas?

Code Snippet
XLS.ExcelUtils.ThrowNotSavedOnDestroy = false;
XLS.IWorkbook excelBook = XLS.ExcelUtils.Open(inputStream);

IDataService dataService = ServiceManager.DataService;

IWorkbook workbook = null;

if (hasMultiplNonEmptyWorksheets(excelBook))
workbook = dataService.CreateWorkbook();

IWorksheet worksheet = null;

for (int index = 0; index < excelBook.Worksheets.Count; index++)
XLS.IWorksheet excelSheet = excelBook.Worksheets[index];

// excelSheet.UsedRange Cells and Column counts do not include the last column


Melba Winshia [Syncfusion]
Replied On June 18, 2007 08:40 AM

Hi Brian,

Thank you for your interest in Essential XlsIO.

I was able to reproduce the problem. Could you please provide some more information regarding the spreadsheet [BUG_754_columnError2.xls]?

1) Was this file [BUG_754_columnError2.xls] generated by using MS Excel or XlsIO?

a) Please mention the Office version, if MS Excel generated this [BUG_754_columnError2.xls] file?

b) Please mention the version of Essential XlsIO, if XlsIO generated this [BUG_754_columnError2.xls] file?

2) Was this file [BUG_754_columnError2.xls] generated by third party tool?

The above details would help us in investigating this issue further. And also, could you please open a new direct – trac incident with subject line as Forum 62507 - Excel Sheet has wrong number of columns ? So that it would be possible for us to provide more details regarding this issue.


Brian Richards
Replied On June 19, 2007 08:08 AM

I opened a Direct Trac incident.

Melba Winshia [Syncfusion]
Replied On June 19, 2007 08:46 AM

Hi Brian,

Your direct-trac incident has been updated.

Kindly let me know if you have any other questions.



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.