Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-437

load a empty sheet and export it then call Range API to setColumnWidth on any range will throw exception.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 3.0.0 RC
    • 3.0.0 RC
    • ZPOI
    • None

      1. load a empty sheet into ZSS.
      2. export it.
      3. setColumnWidth on any range will throw exception

      Failure Trace:

      java.lang.IndexOutOfBoundsException
      	at org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTWorksheetImpl.getColsArray(Unknown Source)
      	at org.zkoss.poi.xssf.usermodel.helpers.ColumnHelper.getOrCreateColumn1Based(ColumnHelper.java:259)
      	at org.zkoss.poi.xssf.usermodel.helpers.ColumnHelper.setColWidth(ColumnHelper.java:243)
      	at org.zkoss.poi.xssf.usermodel.XSSFSheet.setColumnWidth(XSSFSheet.java:2080)
      	at org.zkoss.zss.model.sys.impl.BookHelper.setColumnWidth(BookHelper.java:3249)
      	at org.zkoss.zss.model.sys.impl.XRangeImpl.setColumnWidth(XRangeImpl.java:1557)
      	at org.zkoss.zss.api.impl.RangeImpl.setColumnWidth(RangeImpl.java:779)
      

            hawk hawk
            roliroli roliroli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: