Examples of WorkBookException


Examples of com.extentech.ExtenXLS.WorkBookException

                case DSF:
                    Dsf dsf = (Dsf)rec;
                    if(dsf.fDSF == 1){
                        Logger.logErr("DOUBLE STREAM FILE DETECTED!");
                        Logger.logErr("  ExtenXLS is compatible with Excel 97 and above only.");
                        throw new WorkBookException("ERROR: DOUBLE STREAM FILE DETECTED!  ExtenXLS is compatible with Excel 97 + only.", WorkBookException.DOUBLE_STREAM_FILE);
                    }
                    break;
                   
                case GUTS:
                    if (bs != null){
View Full Code Here

Examples of com.extentech.ExtenXLS.WorkBookException

        }catch(WorkSheetNotFoundException e){
            try{
                Boundsheet s2 = this.getWorkSheetByNumber(0);
                s2.setSelected(true);
            }catch(Exception ee){
                throw new WorkBookException("Invalid WorkBook.  WorkBook must contain at least one Sheet.", WorkBookException.RUNTIME_ERROR);
            };
        }
    }
View Full Code Here

Examples of com.extentech.formats.XLS.WorkBookException

     
      Block bx = (Block) this.blockmap.get(block);
      startpos -= (block * SIZE);
      return bx.getBytes(startpos, startpos + 4);
      }catch(RuntimeException e) {
        throw new WorkBookException("Smallblock based workbooks are unsupported in ExtenXLS: see http://extentech.com/uimodules/docs/docs_detail.jsp?showall=true&meme_id=195", WorkBookException.SMALLBLOCK_FILE);
      }
  }
View Full Code Here

Examples of com.extentech.formats.XLS.WorkBookException

      pos += DIRECTORY_SIZE;
      Storage rec = null;
      try{
        rec = new Storage(b);
      }catch(Exception ex){
        throw new WorkBookException("StorageTable.init failed:" + ex.toString(), WorkBookException.UNSPECIFIED_INIT_ERROR);
      }
      if (i==0) {       
        rec = new RootStorage(b);
        if (!rec.getName().equals("Root Entry"))       
          rec.setName("Root Entry")// can happen upon a mac-sourced file
View Full Code Here

Examples of com.extentech.formats.XLS.WorkBookException

      s.setPrevStorageID(-1);
      s.setNextStorageID(-1);
      s.setChildStorageID(-1);
      addStorage(s, insertIdx);
    }catch(Exception ex){
      throw new WorkBookException("Storage.createStorage failed:" + ex.toString(), WorkBookException.UNSPECIFIED_INIT_ERROR);
    }
    return s;
  }
View Full Code Here

Examples of com.extentech.formats.XLS.WorkBookException

      mappings[z]= ((Integer)seriesmappings.get(z)).intValue();
    }
    try{
      sl.setSeriesMappings(mappings);
    }catch(Exception e){
      throw new WorkBookException("ChartSeries.updateSeriesMappings failed:" + e.toString(),WorkBookException.RUNTIME_ERROR);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.