Package railo.runtime.poi

Examples of railo.runtime.poi.Excel


public class SpreadSheetNew {
 
  private static final String DEFAULT_NAME = "Sheet1";

  public static Object call(PageContext pc) {
    return new Excel(DEFAULT_NAME, Excel.FORMAT_HSSF, 0);
  }
View Full Code Here


  }

  public static Object call(PageContext pc, Object sheetNameOrXMLFormat) throws PageException {
    short format=toFormat(sheetNameOrXMLFormat);
    if(format==Excel.FORMAT_UNDEFINED)
      return new Excel(Caster.toString(sheetNameOrXMLFormat), Excel.FORMAT_HSSF, 0);
    return new Excel(DEFAULT_NAME, format, 0);
  }
View Full Code Here

    // format
    short format=toFormat(oXmlFormat);
    if(format==Excel.FORMAT_UNDEFINED)
      throw new FunctionException(pc, "SpreadSheetNew", 2, "xmlFormat", "invalid value ["+oXmlFormat+"], valid values are [true,false,XSSF,HSSF]");
   
    return new Excel(sheetName, format, 0);
  }
View Full Code Here

TOP

Related Classes of railo.runtime.poi.Excel

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.