Skip to content
Reference > AmiScript > Classes

XlsSpreadSheetBuilder

Definition

XlsSpreadSheetBuilder var = .... ;

Extends

Extended By

None

Description

Builder for generating an Xls Spreadsheet

Method Summary

Owner Name Return Type Description
XlsSpreadSheetBuilder constructor() XlsSpreadSheetBuilder Creates a builder for generating a spreadsheet
XlsSpreadSheetBuilder build() Binary Builds and returns a binary containing the spreadsheet. The spreadsheet builder will be reset after this is called.
Object getClassName() String Returns the string name of this object's class type.
XlsSpreadSheetBuilder getSheetNames() Set Returns a set containing the names of the sheets added by the builder.
XlsSpreadSheetBuilder getSheetsCount() Integer Returns the number of sheets built by the builder.
XlsSpreadSheetBuilder getWorksheet(worksheetName) Object Returns an existing worksheet with the input name. (Returned type is an XlsSpreadSheetFlexSheet base class
XlsSpreadSheetBuilder loadExistingSheets(data) Boolean Loads an existing xls file into individual flex sheets
Object toJson() String Returns a string of a json representation of this object.

Method Definitions


constructor()

XlsSpreadSheetBuilder xlsspreadsheetbuilder = new XlsSpreadSheetBuilder()

Description

Creates a builder for generating a spreadsheet

Example 1

1
2
3
SpreadSheetBuilder builder = new SpreadSheetBuilder();

// builder = spreadsheet.AmiWebSpreadSheetBuilder@24bdb479

This creates a spreadsheet builder that can then be used to perform other functions. Call the builder on .xls files to import spreadsheets into AMI.


build()

Binary XlsSpreadSheetBuilder::build()

Description

Builds and returns a binary containing the spreadsheet. The spreadsheet builder will be reset after this is called.


getClassName()

String Object::getClassName()

Description

Returns the string name of this object's class type.


getSheetNames()

Set XlsSpreadSheetBuilder::getSheetNames()

Description

Returns a set containing the names of the sheets added by the builder.


getSheetsCount()

Integer XlsSpreadSheetBuilder::getSheetsCount()

Description

Returns the number of sheets built by the builder.


getWorksheet(worksheetName)

Object XlsSpreadSheetBuilder::getWorksheet(String worksheetName)

Description

Returns an existing worksheet with the input name. (Returned type is an XlsSpreadSheetFlexSheet base class

Parameter Definition

Name Type Description
worksheetName String 

loadExistingSheets(data)

Boolean XlsSpreadSheetBuilder::loadExistingSheets(Binary data)

Description

Loads an existing xls file into individual flex sheets

Parameter Definition

Name Type Description
data Binary 

toJson()

String Object::toJson()

Description

Returns a string of a json representation of this object.