in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

C1.C1Excel.C1XLBook.Load on XLSX file looses first 26 (or so) columns.

Last post 05-08-2008 5:33 AM by C1_SamX. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-06-2008 10:52 AM

    C1.C1Excel.C1XLBook.Load on XLSX file looses first 26 (or so) columns.

    Using C1.C1Excel.C1XLBook.Load (version 2.1.20082.87) to read an XLSX file with 200 columns and 4 rows, if I check the value of cell(0,0) it starts with the contents of the 27th column. To create the original file, I opened a new instance of Excel 2007, Typed A_1 in cell A1 and drug it accross to create data A_1 - A_200 in the first row. I then put data in the next 3 rows and drug them across to create data as well and saved the file.

    Using the following code will result in my data now starting at A_27 with no sign of the original first 26 columns of data.  Any help would be greatly appreciated.

    I'm using Visual Studio 2005 SP1 on Windows Vista SP1.

    Dim XL As New C1.C1Excel.C1XLBook

    Dim fileStr as string = "C:\myNewFile.XLSX"

    XL.Load(fileStr, True)

    XL.Save(fileStr)

     I do not experience these problems using an XLS (2003) file.

  • 05-08-2008 5:33 AM In reply to

    Re: C1.C1Excel.C1XLBook.Load on XLSX file looses first 26 (or so) columns.

    This issue has already been reported. Please send a mail to support@componentone.com to get the required information.
     
    Regards,
    Sam Xavier
    <PCI_Steve> wrote in message news:204586@10.0.1.98...

    Using C1.C1Excel.C1XLBook.Load (version 2.1.20082.87) to read an XLSX file with 200 columns and 4 rows, if I check the value of cell(0,0) it starts with the contents of the 27th column. To create the original file, I opened a new instance of Excel 2007, Typed A_1 in cell A1 and drug it accross to create data A_1 - A_200 in the first row. I then put data in the next 3 rows and drug them across to create data as well and saved the file.

    Using the following code will result in my data now starting at A_27 with no sign of the original first 26 columns of data.  Any help would be greatly appreciated.

    I'm using Visual Studio 2005 SP1 on Windows Vista SP1.

    Dim XL As New C1.C1Excel.C1XLBook

    Dim fileStr as string = "C:\myNewFile.XLSX"

    XL.Load(fileStr, True)

    XL.Save(fileStr)

     I do not experience these problems using an XLS (2003) file.



    http://helpcentral.componentone.com/cs/forums/p/75160/204586.aspx#204586

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.