Package com.extentech.formats.XLS

Examples of com.extentech.formats.XLS.FunctionNotSupportedException


        }else if (p instanceof PtgAtr){
         
          // this is probably just a space at this point, don't output error message
       
        }else{
            throw new FunctionNotSupportedException("WARNING: Calculating Formula failed: Unsupported/Incorrect Ptg Type: 0x"+ p.getOpcode() + " " +  p.getString());
        }
    }
View Full Code Here


           y= FunctionConstants.recArr.length;  // exit loop
         }
      }
        }
        if (funkId==255)// it's not found
          throw new FunctionNotSupportedException(s);
           
//      now get rid of PtgNameX operand before calling function
    Ptg[] ops = new Ptg[operands.length-1];
    System.arraycopy(operands, 1, ops, 0, operands.length-1)
    operands = new Ptg[ops.length];
View Full Code Here

      if (s!=null && !s.equals( ""))
        s= s.substring(0, s.length()-1);
      else
        s= new String(Integer.toHexString((int)functionId));
    //throw new FunctionNotSupportedException( (!.equals(""))?FunctionConstants.getFunctionString((short)funkId).substring(0, ):Integer.toHexString((int)funkId));
      throw new FunctionNotSupportedException(s)// 20081118 KSC: add a little more info ...
   
  }

   
  return resultPtg;
View Full Code Here

  protected static Ptg calcAccrint(Ptg[] operands) throws
    FunctionNotSupportedException {
    if (true) {
          String wn = "WARNING: this version of ExtenXLS does not support the formula ACCRINT.";
          Logger.logWarn(wn);
          throw new FunctionNotSupportedException(wn);
    }
    if (operands.length < 6) {
      return new PtgErr(PtgErr.ERROR_NULL);
    }
    if (DEBUG) debugOperands(operands, "ACCRINT");
View Full Code Here

  protected static Ptg calcODDFPRICE(Ptg[] operands) throws
    FunctionNotSupportedException {
    if (true) {
          String wn = "WARNING: this version of ExtenXLS does not support the formula ODDFPRICE.";
          Logger.logWarn(wn);
          throw new FunctionNotSupportedException(wn);
    }   
    if (operands.length < 8) { // not supported by function
      return new PtgErr(PtgErr.ERROR_NULL);
    }
    if (DEBUG)
View Full Code Here

  protected static Ptg calcODDFYIELD(Ptg[] operands) throws
  FunctionNotSupportedException {
    if (true) {
          String wn = "WARNING: this version of ExtenXLS does not support the formula ODDFYIELD.";
          Logger.logWarn(wn);
          throw new FunctionNotSupportedException(wn);
    }
    if (operands.length < 8) { // not supported by function
      return new PtgErr(PtgErr.ERROR_NULL);
    }
    if (DEBUG)
View Full Code Here

  protected static Ptg calcODDLPRICE(Ptg[] operands) throws
  FunctionNotSupportedException {
    if (true) {
          String wn = "WARNING: this version of ExtenXLS does not support the formula ODDLPRICE.";
          Logger.logWarn(wn);
          throw new FunctionNotSupportedException(wn);
    }
    if (operands.length < 8) { // not supported by function
      return new PtgErr(PtgErr.ERROR_NULL);
    }
    if (DEBUG) debugOperands(operands, "calcODDLPRICE");
View Full Code Here

  protected static Ptg calcODDLYIELD(Ptg[] operands) throws
  FunctionNotSupportedException {
    if (true) {
          String wn = "WARNING: this version of ExtenXLS does not support the formula ODDLYIELD.";
          Logger.logWarn(wn);
          throw new FunctionNotSupportedException(wn);
    }
    if (operands.length < 8) { // not supported by function
      return new PtgErr(PtgErr.ERROR_NULL);
    }
    if (DEBUG) debugOperands(operands, "calcODDLYIELD");
View Full Code Here

         }
       //  If ref param is omitted, the information specified in the info_type argument
       // is returned for the last cell that was changed
       } else if (!type.equals("filename"))// no ref was passed in and option is not "filename"
         // We cannot determine which is the "last cell" they are referencing;
           throw new FunctionNotSupportedException("Worsheet function CELL with no reference parameter is not supported");
       else  // filename option can use any biffrec ...
        cell= operands[0].getParentRec();
      
       // at this point both ref (PtgRef) and r (BiffRec) should be valid
       try {
View Full Code Here

TOP

Related Classes of com.extentech.formats.XLS.FunctionNotSupportedException

Copyright © 2018 www.massapicom. 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.