Skip to main content

XLS

Create and read Excel files, support for XLS files as XLSX files. This feature uses the Apache POI library.

const excel = _xls.create();
const titles = _val.init()
.add(
_val.init()
.set('value', 'Name')
).add(
_val.init()
.set('value', 'Age')
);
const endPosition = excel.addDataTable(1, 1, titles)
const data = _val.init()
.add(
_val.init()
.add(
_val.init()
.set('value', 'John')
).add(
_val.init()
.set('value', 24)
)
).add(
_val.init()
.add(
_val.init()
.set('value', 'Annye')
).add(
_val.init()
.set('value', 22)
)
);
endPosition = excel.addDataTable(endPosition.row, 1, data)
excel.output("ages.xls");

activeSheet


_xls.create().activeSheet(index: int) : XLS

Description

Sets the spreadsheet that is active.

Attributes
NAMETYPEDESCRIPTION
indexintSpreadsheet number.
Return

( XLS )

A instância atual do recurso XLS.


_xls.create().activeSheet(index: org.apache.poi.hssf.usermodel.HSSFSheet) : XLS

Description

Sets the spreadsheet that is active.

Attributes
NAMETYPEDESCRIPTION
indexorg.apache.poi.hssf.usermodel.HSSFSheetSpreadsheet reference object.
Return

( XLS )

The current instance of the XLS resource.


addDataTable


_xls.create().addDataTable(rowIndex: int, colIndex: int, data: java.util.List) : XLSPosition

Description

Adds a data table to the spreadsheet.

Attributes
NAMETYPEDESCRIPTION
rowIndexintLine number.
colIndexintColumn number.
datajava.util.ListList of data to be inserted.
Return

( XLSPosition )

Reference of the position of the last cell with data entered.


_xls.create().addDataTable(rowIndex: int, colIndex: int, data: java.util.List, vertical: boolean) : XLSPosition

Description

Adds a data table to the spreadsheet.

Attributes
NAMETYPEDESCRIPTION
rowIndexintLine number.
colIndexintColumn number.
datajava.util.ListList of data to be inserted.
verticalbooleanInsert data vertically.
Return

( XLSPosition )

Reference of the position of the last cell with data entered.


_xls.create().addDataTable(rowIndex: int, colIndex: int, data: Values) : XLSPosition

Description

Adds a data table to the spreadsheet.

Attributes
NAMETYPEDESCRIPTION
rowIndexintLine number.
colIndexintColumn number.
dataValuesList of data to be inserted.
Return

( XLSPosition )

Reference of the position of the last cell with data entered.


_xls.create().addDataTable(rowIndex: int, colIndex: int, data: Values, vertical: boolean) : XLSPosition

Description

Adds a data table to the spreadsheet.

Attributes
NAMETYPEDESCRIPTION
rowIndexintLine number.
colIndexintColumn number.
dataValuesList of data to be inserted.
verticalbooleanInsert data vertically.
Return

( XLSPosition )

Reference of the position of the last cell with data entered.


_xls.create().addDataTable(config: Config | Exec | Header | Req | Res | Values | DataSchema, data: java.util.List) : XLSPosition

Description

Adds a data table to the spreadsheet.

Attributes
NAMETYPEDESCRIPTION
configConfig | Exec | Header | Req | Res | Values | DataSchemaConfiguration of the data table.
datajava.util.ListList of data to be inserted.
Return

( XLSPosition )

Reference of the position of the last cell with data entered.


_xls.create().addDataTable(sheet: org.apache.poi.ss.usermodel.Sheet, rowIndex: int, colIndex: int, data: java.util.List) : XLSPosition

Description

Adds a data table to the spreadsheet.

Attributes
NAMETYPEDESCRIPTION
sheetorg.apache.poi.ss.usermodel.SheetSpreadsheet object.
rowIndexintLine number.
colIndexintColumn number.
datajava.util.ListList of data to be inserted.
Return

( XLSPosition )

Reference of the position of the last cell with data entered.


_xls.addDataTable(sheet: org.apache.poi.ss.usermodel.Sheet, rowIndex: int, colIndex: int, data: java.util.List, vertical: boolean) : XLSPosition

Attributes
NAMETYPEDESCRIPTION
sheetorg.apache.poi.ss.usermodel.Sheet
rowIndexint
colIndexint
datajava.util.List
verticalboolean
Return

( XLSPosition )


_xls.create().addDataTable(sheet: org.apache.poi.ss.usermodel.Sheet, rowIndex: int, colIndex: int, data: Values) : XLSPosition

Description

Adds a data table to the spreadsheet.

Attributes
NAMETYPEDESCRIPTION
sheetorg.apache.poi.ss.usermodel.SheetSpreadsheet object.
rowIndexintLine number.
colIndexintColumn number.
dataValuesList of data to be inserted.
Return

( XLSPosition )

Reference of the position of the last cell with data entered.


_xls.addDataTable(sheet: org.apache.poi.ss.usermodel.Sheet, rowIndex: int, colIndex: int, data: Values, vertical: boolean) : XLSPosition

Attributes
NAMETYPEDESCRIPTION
sheetorg.apache.poi.ss.usermodel.Sheet
rowIndexint
colIndexint
dataValues
verticalboolean
Return

( XLSPosition )


anchorType


_xls.anchorType(type: string) : org.apache.poi.ss.usermodel.ClientAnchor$AnchorType

Description

Generates the type of anchor.

Attributes
NAMETYPEDESCRIPTION
typestringAnchor type name, supports:
  • move-and-resize
  • dont-move-do-resize
  • move-dont-resize
  • dont-move-and-resize
Return

( org.apache.poi.ss.usermodel.ClientAnchor$AnchorType )

The anchor type configured with the defined type.


borderStyle


_xls.borderStyle(type: string) : org.apache.poi.ss.usermodel.BorderStyle

Description

Generates the outline style of the cell borders.

Attributes
NAMETYPEDESCRIPTION
typestringName of the border style type, supports:
  • none
  • thin
  • medium
  • dashed
  • dotted
  • thick
  • double
  • hair
  • medium-dashed
  • dash-dot
  • medium-dash-dot
Return

( org.apache.poi.ss.usermodel.BorderStyle )

The border outline style configured with the defined type.


cell


_xls.create().cell(rowIndex: int, colIndex: int) : org.apache.poi.ss.usermodel.Cell

Description

Gets a spreadsheet cell and if it does not exist then it will be created.

Attributes
NAMETYPEDESCRIPTION
rowIndexintLine number.
colIndexintColumn number.
Return

( org.apache.poi.ss.usermodel.Cell )

Cell representation object.


_xls.create().cell(sheet: org.apache.poi.ss.usermodel.Sheet, rowIndex: int, colIndex: int) : org.apache.poi.ss.usermodel.Cell

Description

Gets a spreadsheet cell and if it does not exist then it will be created.

Attributes
NAMETYPEDESCRIPTION
sheetorg.apache.poi.ss.usermodel.SheetSpreadsheet object.
rowIndexintLine number of the sheet.
colIndexintColumn number.
Return

( org.apache.poi.ss.usermodel.Cell )

Cell representation object.


cellRangeAddress


_xls.cellRangeAddress(firstRow: int, lastRow: int, firstCol: int, lastCol: int) : org.apache.poi.ss.util.CellRangeAddress

Description

Generates the region address of the cell area.

Attributes
NAMETYPEDESCRIPTION
firstRowintFirst line number.
lastRowintLast line number.
firstColintFirst column number.
lastColintLast column number.
Return

( org.apache.poi.ss.util.CellRangeAddress )

The cell area address reference.


cellStyle


_xls.cellStyle() : org.apache.poi.ss.usermodel.CellStyle

Description

Creates a new cell style in the workbook.

Return

( org.apache.poi.ss.usermodel.CellStyle )

The new cell style created.


cellStyleFormat


_xls.cellStyleFormat(format: string) : org.apache.poi.ss.usermodel.CellStyle

Description

Creates a new cell style with an associated format in the workbook.

Attributes
NAMETYPEDESCRIPTION
formatstringFormat standard definition.
Return

( org.apache.poi.ss.usermodel.CellStyle )

The new cell style created with the configured format.


color


_xls.color(color: string) : short

Description

Generates the color code based on predefined names.

Attributes
NAMETYPEDESCRIPTION
colorstringColor name, supports:
  • black
  • brown
  • olive_green
  • dark_green
  • dark_teal
  • dark_blue
  • indigo
  • grey_80_percent
  • orange
  • dark_yellow
  • green
  • teal
  • blue
  • blue_grey
  • grey_50_percent
  • red
  • light_orange
  • lime
  • sea_green
  • aqua
  • light_blue
  • violet
  • grey_40_percent
  • pink
  • gold
  • yellow
  • bright_green
  • turquoise
  • dark_red
  • sky_blue
  • plum
  • grey_25_percent
  • rose
  • light_yellow
  • light_green
  • light_turquoise
  • pale_blue
  • lavender
  • white
  • cornflower_blue
  • lemon_chiffon
  • maroon
  • orchid
  • coral
  • royal_blue
  • light_cornflower_blue
  • tan
  • automatic
Return

( short )

The color reference.


columnReference


_xls.columnReference(index: int) : string

Description

Gets the column reference (letters) based on its numeric position.

Attributes
NAMETYPEDESCRIPTION
indexintColumn number.
Return

( string )

Reference in column letters.


_xls.columnReference(index: string) : int

Description

Gets the numeric position of the column based on the letter reference.

Attributes
NAMETYPEDESCRIPTION
indexstringReference in column letters.
Return

( int )

Numeric position of the column.


create


_xls.create() : XLS

Description

Creates a new Excel document.

How To Use
const excel = _xls.create();
Return

( XLS )

New XLS resource instance.


createSheet


_xls.create().createSheet() : org.apache.poi.ss.usermodel.Sheet

Description

Creates a new spreadsheet.

Return

( org.apache.poi.ss.usermodel.Sheet )

Spreadsheet created.


_xls.create().createSheet(name: string) : org.apache.poi.ss.usermodel.Sheet

Description

Create a new spreadsheet and define its name.

Attributes
NAMETYPEDESCRIPTION
namestringSpreadsheet name.
Return

( org.apache.poi.ss.usermodel.Sheet )

Spreadsheet created.


fillPattern


_xls.fillPattern(type: string) : org.apache.poi.ss.usermodel.FillPatternType

Description

Generates the background fill pattern.

Attributes
NAMETYPEDESCRIPTION
typestringFill pattern type, supports:
  • no-fill
  • solid-foreground
  • fine-dots
  • alt-bars
  • sparse-dots
  • thick-horz-bands
  • thick-vert-bands
  • thick-backward-diag
  • thick-forward-diag
  • big-spots
  • bricks
  • thin-horz-bands
  • thin-vert-bands
  • thin-backward-diag
  • thin-forward-diag
  • squares
  • diamonds
  • less-dots
  • least-dots
Return

( org.apache.poi.ss.usermodel.FillPatternType )

The fill pattern configured with the defined type.


font


_xls.font() : org.apache.poi.ss.usermodel.Font

Description

Creates a new font style in the workbook.

Return

( org.apache.poi.ss.usermodel.Font )

The new font style created.


format


_xls.format(format: string) : short

Description

Creates a new cell format in the workbook.

Attributes
NAMETYPEDESCRIPTION
formatstringFormat standard definition.
Return

( short )

Identifier code for the new format.


getAllSheets


_xls.create().getAllSheets() : java.util.List

Description

List of all spreadsheets.

Return

( java.util.List )

All existing spreadsheets in the document.


getCellData


_xls.create().getCellData(rowIndex: int, colIndex: int) : Values

Description

Gets an object with data from a spreadsheet cell.

Attributes
NAMETYPEDESCRIPTION
rowIndexintLine number.
colIndexintColumn number.
Return

( Values )

Cell data information.


_xls.create().getCellData(cell: org.apache.poi.ss.usermodel.Cell) : Values

Description

Gets an object with data from a spreadsheet cell.

Attributes
NAMETYPEDESCRIPTION
cellorg.apache.poi.ss.usermodel.CellObject that represents the cell.
Return

( Values )

Cell data information.


_xls.create().getCellData(sheet: org.apache.poi.ss.usermodel.Sheet, rowIndex: int, colIndex: int) : Values

Description

Gets an object with data from a spreadsheet cell.

Attributes
NAMETYPEDESCRIPTION
sheetorg.apache.poi.ss.usermodel.SheetSpreadsheet object.
rowIndexintLine number of the sheet.
colIndexintColumn number.
Return

( Values )

Cell data information.


getNumberOfSheets


_xls.create().getNumberOfSheets() : int

Description

Gets the total number of spreadsheets.

Return

( int )

The total number of spreadsheets in the document.


getSheet


_xls.create().getSheet(index: int) : org.apache.poi.ss.usermodel.Sheet

Description

Get the spreadsheet by number (index).

Attributes
NAMETYPEDESCRIPTION
indexintSpreadsheet number.
Return

( org.apache.poi.ss.usermodel.Sheet )

Spreadsheet referring to the number (index).


_xls.create().getSheet(name: string) : org.apache.poi.ss.usermodel.Sheet

Description

Gets the spreadsheet by name.

Attributes
NAMETYPEDESCRIPTION
namestringSpreadsheet name.
Return

( org.apache.poi.ss.usermodel.Sheet )

Spreadsheet for the name.


horizontalAlignment


_xls.horizontalAlignment(type: string) : org.apache.poi.ss.usermodel.HorizontalAlignment

Description

Generates horizontal alignment.

Attributes
NAMETYPEDESCRIPTION
typestringHorizontal alignment type name, supports:
  • general
  • left
  • center
  • right
  • fill
  • justify
  • center-selection
  • distributed
Return

( org.apache.poi.ss.usermodel.HorizontalAlignment )

The horizontal alignment configured with the defined type.


insertPicture


_xls.insertPicture(sheet: org.apache.poi.ss.usermodel.Sheet, file: File, anchor: org.apache.poi.ss.usermodel.ClientAnchor) : org.apache.poi.ss.usermodel.Picture

Description

Inserts an image associated with the anchor in a specific spreadsheet.

Attributes
NAMETYPEDESCRIPTION
sheetorg.apache.poi.ss.usermodel.SheetSpreadsheet that will be used to insert the image.
fileFileImage file.
anchororg.apache.poi.ss.usermodel.ClientAnchorAnchor to associate the image.
Return

( org.apache.poi.ss.usermodel.Picture )

The reference object of the inserted image.


_xls.insertPicture(sheet: org.apache.poi.ss.usermodel.Sheet, storage: Storage, anchor: org.apache.poi.ss.usermodel.ClientAnchor) : org.apache.poi.ss.usermodel.Picture

Description

Inserts an image associated with the anchor in a specific spreadsheet.

Attributes
NAMETYPEDESCRIPTION
sheetorg.apache.poi.ss.usermodel.SheetSpreadsheet that will be used to insert the image.
storageStorageStorage reference associated with an image file.
anchororg.apache.poi.ss.usermodel.ClientAnchorAnchor to associate the image.
Return

( org.apache.poi.ss.usermodel.Picture )

The reference object of the inserted image.


_xls.create().insertPicture(file: File, linha: int, coluna: int) : org.apache.poi.ss.usermodel.Picture

Description

Insert the image into the specified cell.

Attributes
NAMETYPEDESCRIPTION
fileFileImage file.
linhaintLine number.
colunaintColumn number.
Return

( org.apache.poi.ss.usermodel.Picture )

The reference object of the inserted image.


_xls.create().insertPicture(file: File, anchor: org.apache.poi.ss.usermodel.ClientAnchor) : org.apache.poi.ss.usermodel.Picture

Description

Inserts an image associated with the anchor.

Attributes
NAMETYPEDESCRIPTION
fileFileImage file.
anchororg.apache.poi.ss.usermodel.ClientAnchorAnchor to associate the image.
Return

( org.apache.poi.ss.usermodel.Picture )

The reference object of the inserted image.


_xls.create().insertPicture(storage: Storage, linha: int, coluna: int) : org.apache.poi.ss.usermodel.Picture

Description

Insert the image into the specified cell.

Attributes
NAMETYPEDESCRIPTION
storageStorageStorage reference associated with an image file.
linhaintLine number.
colunaintColumn number.
Return

( org.apache.poi.ss.usermodel.Picture )

The reference object of the inserted image.


_xls.create().insertPicture(storage: Storage, anchor: org.apache.poi.ss.usermodel.ClientAnchor) : org.apache.poi.ss.usermodel.Picture

Description

Inserts an image associated with the anchor.

Attributes
NAMETYPEDESCRIPTION
storageStorageStorage reference associated with an image file.
anchororg.apache.poi.ss.usermodel.ClientAnchorAnchor to associate the image.
Return

( org.apache.poi.ss.usermodel.Picture )

The reference object of the inserted image.


mergedRegion


_xls.mergedRegion(firstRow: int, lastRow: int, firstCol: int, lastCol: int) : int

Description

Performs the merging of cells in the region.

Attributes
NAMETYPEDESCRIPTION
firstRowintFirst line number.
lastRowintLast line number.
firstColintFirst column number.
lastColintLast column number.
Return

( int )

The reference of the merged cell region.


_xls.mergedRegion(sheet: org.apache.poi.ss.usermodel.Sheet, firstRow: int, lastRow: int, firstCol: int, lastCol: int) : int

Description

Performs the merging of cells in the passed region in a specific worksheet.

Attributes
NAMETYPEDESCRIPTION
sheetorg.apache.poi.ss.usermodel.SheetSpreadsheet that will be merged the cells.
firstRowintFirst line number.
lastRowintLast line number.
firstColintFirst column number.
lastColintLast column number.
Return

( int )

The reference of the merged cell region.


open


_xls.open(input: InputStream) : XLS

Description

Opens an Excel file.

Attributes
NAMETYPEDESCRIPTION
inputInputStreamFile data input stream object.
Return

( XLS )

File opened in a new instance of the XLS resource.


_xls.open(input: InputStream, password: string) : XLS

Description

Opens an Excel file.

Attributes
NAMETYPEDESCRIPTION
inputInputStreamFile data input stream object.
passwordstringFile password.
Return

( XLS )

File opened in a new instance of the XLS resource.


_xls.open(file: File) : XLS

Description

Opens an Excel file.

Attributes
NAMETYPEDESCRIPTION
fileFileExcel document type file.
Return

( XLS )

File opened in a new instance of the XLS resource.


_xls.open(file: File, password: string) : XLS

Description

Opens an Excel file.

Attributes
NAMETYPEDESCRIPTION
fileFileExcel document type file.
passwordstringFile password.
Return

( XLS )

File opened in a new instance of the XLS resource.


_xls.open(input: InputStream) : XLS

Description

Opens an Excel file.

Attributes
NAMETYPEDESCRIPTION
inputInputStreamFile data input stream object.
Return

( XLS )

File opened in a new instance of the XLS resource.


_xls.open(input: InputStream, password: string) : XLS

Description

Opens an Excel file.

Attributes
NAMETYPEDESCRIPTION
inputInputStreamFile data input stream object.
passwordstringFile password.
Return

( XLS )

File opened in a new instance of the XLS resource.


_xls.open(storage: Storage) : XLS

Description

Opens an Excel file.

Attributes
NAMETYPEDESCRIPTION
storageStorageStorage reference where the file will be opened.
Return

( XLS )

File opened in a new instance of the XLS resource.


_xls.open(storage: Storage, password: string) : XLS

Description

Opens an Excel file.

Attributes
NAMETYPEDESCRIPTION
storageStorageStorage reference where the file will be opened.
passwordstringFile password.
Return

( XLS )

File opened in a new instance of the XLS resource.


output


_xls.create().output(fileName: string) : void

Description

Performs the sending of data from the final file to the client to download it.

Attributes
NAMETYPEDESCRIPTION
fileNamestringName of the file.
Return

( void )


position


_xls.position(rowIndex: int, colIndex: int) : XLSPosition

Description

Gets the positioning object.

Attributes
NAMETYPEDESCRIPTION
rowIndexintLine number.
colIndexintColumn number.
Return

( XLSPosition )

Position reference based on passed coordinates.


read


_xls.read(input: InputStream) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputInputStreamExcel file reference.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: InputStream, hiddenSheets: boolean) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputInputStreamExcel file reference.
hiddenSheetsbooleanIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: InputStream, sheetNumber: int) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputInputStreamExcel file reference.
sheetNumberintSpreadsheet number.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: InputStream, hiddenSheets: string) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputInputStreamExcel file reference.
hiddenSheetsstringIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: InputStream, sheetNumber: string, hiddenSheets: boolean) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputInputStreamExcel file reference.
sheetNumberstringSpreadsheet number.
hiddenSheetsbooleanIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: InputStream, sheetNumber: string, hiddenSheets: int) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputInputStreamExcel file reference.
sheetNumberstringSpreadsheet number.
hiddenSheetsintIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(in: InputStream, password: string, sheetNumber: int, hiddenSheets: boolean) : Values

Attributes
NAMETYPEDESCRIPTION
inInputStream
passwordstring
sheetNumberint
hiddenSheetsboolean
Return

( Values )


_xls.read(input: File) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputFileExcel file reference.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: File, hiddenSheets: boolean) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputFileExcel file reference.
hiddenSheetsbooleanIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: File, sheetNumber: int) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputFileExcel file reference.
sheetNumberintSpreadsheet number.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: File, sheetNumber: int, hiddenSheets: boolean) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputFileExcel file reference.
sheetNumberintSpreadsheet number.
hiddenSheetsbooleanIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: File, hiddenSheets: string) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputFileExcel file reference.
hiddenSheetsstringIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: File, sheetNumber: string, hiddenSheets: boolean) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputFileExcel file reference.
sheetNumberstringSpreadsheet number.
hiddenSheetsbooleanIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: File, sheetNumber: string, hiddenSheets: int) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputFileExcel file reference.
sheetNumberstringSpreadsheet number.
hiddenSheetsintIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(file: File, password: string, sheetNumber: int, hiddenSheets: boolean) : Values

Attributes
NAMETYPEDESCRIPTION
fileFile
passwordstring
sheetNumberint
hiddenSheetsboolean
Return

( Values )


_xls.read(input: Storage) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputStorageExcel file reference.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: Storage, hiddenSheets: boolean) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputStorageExcel file reference.
hiddenSheetsbooleanIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: Storage, sheetNumber: int) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputStorageExcel file reference.
sheetNumberintSpreadsheet number.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: Storage, sheetNumber: int, hiddenSheets: boolean) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputStorageExcel file reference.
sheetNumberintSpreadsheet number.
hiddenSheetsbooleanIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: Storage, hiddenSheets: string) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputStorageExcel file reference.
hiddenSheetsstringIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: Storage, sheetNumber: string, hiddenSheets: boolean) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputStorageExcel file reference.
sheetNumberstringSpreadsheet number.
hiddenSheetsbooleanIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(input: Storage, sheetNumber: string, hiddenSheets: int) : Values

Description

Reads an Excel file, obtains all data.

Attributes
NAMETYPEDESCRIPTION
inputStorageExcel file reference.
sheetNumberstringSpreadsheet number.
hiddenSheetsintIt also processes hidden spreadsheets.
Return

( Values )

Structure with all the data obtained by reading and processing the Excel files.


_xls.read(storage: Storage, password: string, sheetNumber: int, hiddenSheets: boolean) : Values

Attributes
NAMETYPEDESCRIPTION
storageStorage
passwordstring
sheetNumberint
hiddenSheetsboolean
Return

( Values )


row


_xls.create().row(rowIndex: int) : org.apache.poi.ss.usermodel.Row

Description

Gets a row from the spreadsheet and if it does not exist then it will be created.

Attributes
NAMETYPEDESCRIPTION
rowIndexintLine number.
Return

( org.apache.poi.ss.usermodel.Row )

Line representation object.


_xls.create().row(sheet: org.apache.poi.ss.usermodel.Sheet, rowIndex: int) : org.apache.poi.ss.usermodel.Row

Description

Gets a row from the spreadsheet and if it does not exist then it will be created.

Attributes
NAMETYPEDESCRIPTION
sheetorg.apache.poi.ss.usermodel.SheetSpreadsheet object.
rowIndexintLine number.
Return

( org.apache.poi.ss.usermodel.Row )

Line representation object.


safeSheetName


_xls.safeSheetName(nameProposal: string) : string

Description

Transforms the passed text to be a valid spreadsheet name while complying with Excel rules.

Attributes
NAMETYPEDESCRIPTION
nameProposalstringName that should be transformed.
Return

( string )

Valid name to be used as the name of the spreadsheet.


_xls.safeSheetName(nameProposal: string, replaceChar: char) : string

Description

Transforms the passed text to be a valid spreadsheet name while complying with Excel rules.

Attributes
NAMETYPEDESCRIPTION
nameProposalstringName that should be transformed.
replaceCharcharReplacement character.
Return

( string )

Valid name to be used as the name of the spreadsheet.


save


_xls.create().save(output: OutputStream) : void

Description

Writes the data from the final file to the output.

Attributes
NAMETYPEDESCRIPTION
outputOutputStreamOutput where the file will be saved.
Return

( void )


_xls.create().save(file: File) : void

Description

Writes the data to the final file.

Attributes
NAMETYPEDESCRIPTION
fileFileFile that will be saved.
Return

( void )


_xls.create().save(output: OutputStream) : void

Description

Writes the data from the final file to the output.

Attributes
NAMETYPEDESCRIPTION
outputOutputStreamOutput where the file will be saved.
Return

( void )


_xls.create().save(storage: Storage) : void

Description

Writes the data from the final file to the internal storage of the application.

Attributes
NAMETYPEDESCRIPTION
storageStorageStorage reference where the file will be saved.
Return

( void )


setCellData


_xls.setCellData(row: int, col: int, data: Config | Exec | Header | Req | Res | Values | DataSchema) : XLS

Description

Insert data in a specific cell.

Attributes
NAMETYPEDESCRIPTION
rowintLine number.
colintColumn number.
dataConfig | Exec | Header | Req | Res | Values | DataSchemaData to be inserted.
Return

( XLS )

The current instance of the XLS resource.


_xls.setCellData(row: int, col: int, data: Values) : XLS

Description

Insert data in a specific cell.

Attributes
NAMETYPEDESCRIPTION
rowintLine number.
colintColumn number.
dataValuesData to be inserted.
Return

( XLS )

The current instance of the XLS resource.


_xls.setCellData(cell: org.apache.poi.ss.usermodel.Cell, data: Config | Exec | Header | Req | Res | Values | DataSchema) : XLS

Description

Insert data in a specific cell.

Attributes
NAMETYPEDESCRIPTION
cellorg.apache.poi.ss.usermodel.CellCell object.
dataConfig | Exec | Header | Req | Res | Values | DataSchemaData to be inserted.
Return

( XLS )

The current instance of the XLS resource.


_xls.setCellData(cell: org.apache.poi.ss.usermodel.Cell, data: Values) : XLS

Description

Insert data in a specific cell.

Attributes
NAMETYPEDESCRIPTION
cellorg.apache.poi.ss.usermodel.CellCell object.
dataValuesData to be inserted.
Return

( XLS )

The current instance of the XLS resource.


_xls.setCellData(sheet: org.apache.poi.ss.usermodel.Sheet, row: int, col: int, data: Config | Exec | Header | Req | Res | Values | DataSchema) : XLS

Description

Inserts data into a specific cell in a spreadsheet.

Attributes
NAMETYPEDESCRIPTION
sheetorg.apache.poi.ss.usermodel.SheetSpreadsheet object.
rowintLine number.
colintColumn number.
dataConfig | Exec | Header | Req | Res | Values | DataSchemaData to be inserted.
Return

( XLS )

The current instance of the XLS resource.


_xls.setCellData(sheet: org.apache.poi.ss.usermodel.Sheet, row: int, col: int, data: Values) : XLS

Description

Inserts data into a specific cell in a spreadsheet.

Attributes
NAMETYPEDESCRIPTION
sheetorg.apache.poi.ss.usermodel.SheetSpreadsheet object.
rowintLine number.
colintColumn number.
dataValuesData to be inserted.
Return

( XLS )

The current instance of the XLS resource.


sheet


_xls.create().sheet() : org.apache.poi.ss.usermodel.Sheet

Description

To obtain the current spreadsheet that is being used to manipulate the data.

How To Use
const spreadsheet = _xls.create().sheet();
Return

( org.apache.poi.ss.usermodel.Sheet )

Gets the current spreadsheet.


units


_xls.units() : java.lang.Class

Description

It obtains the types of units predefined in Excel, useful to perform the conversion between pixels and points.

Return

( java.lang.Class )

The Apache POI class that helps you manipulate Excel units.


validSheetName


_xls.validSheetName(nameProposal: string) : boolean

Description

Checks whether the passed text is a valid spreadsheet name that complies with Excel rules.

Attributes
NAMETYPEDESCRIPTION
nameProposalstringName that must be validated.
Return

( boolean )

Whether it is valid to be used as a spreadsheet name.


verticalAlignment


_xls.verticalAlignment(type: string) : org.apache.poi.ss.usermodel.VerticalAlignment

Description

Generates vertical alignment.

Attributes
NAMETYPEDESCRIPTION
typestringVertical alignment type name, supports:
  • top
  • center
  • bottom
  • justify
  • distributed
Return

( org.apache.poi.ss.usermodel.VerticalAlignment )

The vertical alignment configured with the defined type.


workbook


_xls.create().workbook() : org.apache.poi.ss.usermodel.Workbook

Description

Creates a new Excel document.

How To Use
const workbook = _xls.create().workbook();
Return

( org.apache.poi.ss.usermodel.Workbook )

Gets the workbook.