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

An exception is thrown when exporting a file with 0 scale value


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 3.7.0
    • 3.7.0
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. Run attached excel file with 3.6.1.FL.20150115-Eval
      2. export it

      Actual Result

      org.zkoss.poi.POIXMLException: Scale value not accepted: you must choose a value between 10 and 400.
      at org.zkoss.poi.xssf.usermodel.XSSFPrintSetup.setScale(XSSFPrintSetup.java:84)
      at org.zkoss.zss.range.impl.imexp.AbstractExcelExporter.exportSheet(AbstractExcelExporter.java:261)
      at org.zkoss.zss.range.impl.imexp.AbstractExcelExporter.export(AbstractExcelExporter.java:111)
      at org.zkoss.zss.api.impl.ExporterImpl.export(ExporterImpl.java:49)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at bsh.Reflect.invokeMethod(Unknown Source)

      Debug Information

      The test file was originally made in Libre Office and then (possibly) just saved to XLSX format.

            henrichen henrichen
            hawk hawk
            0 Vote for this issue
            0 Start watching this issue