Xlsx Module
Reads the sheets of an xlsx workbook as rows of text.
Types
| Type | Description |
|
A sheet of a workbook. |
Functions and values
| Function or value |
Description
|
|
Returns the text of a cell. A shared or inline string is the string, a boolean is TRUE or FALSE, a number is written by numberText, and an error cell or a cell without a value is empty.
|
Full Usage:
columnIndex cellRef
Parameters:
string
Returns: int
|
Returns the zero-based column index of a cell reference: A1 gives 0, AB12 gives 27.
|
|
The namespace of the relationship id attribute on a sheet element of the workbook.
|
Full Usage:
folderOf path
Parameters:
string
Returns: string
|
Returns the folder of an entry name: xl/workbook.xml gives xl, a name without a folder gives the empty text.
|
|
Joins the text elements of a string item, leaving out the phonetic hints.
|
|
The namespace of the worksheet, workbook and shared strings elements.
|
Full Usage:
numberText s
Parameters:
string
Returns: string
|
Returns a stored number as a plain decimal with at most 15 significant digits, the precision of a spreadsheet number: 30.0 gives 30, 2.4E7 gives 24000000, 9.129E-5 gives 0.00009129, and the floating point result 0.16699999999999998 gives 0.167. Text that is not a number is returned unchanged.
|
|
The namespace of the elements in a relationships part.
|
Full Usage:
plainFormat
Returns: string
|
The format that writes a double as a plain decimal with at most 15 significant digits. A double has at most 324 decimals before its 15 significant digits end, so 339 decimal places write every double without an exponent.
|
|
|
|
|
Full Usage:
relationships part doc
Parameters:
string
doc : XDocument
Returns: (string * string * string) list
|
Reads the relationships of a part from its relationships document as (id, type, entry name) triples.
|
Full Usage:
relationshipsPath part
Parameters:
string
Returns: string
|
Returns the entry name of the relationships of a part: xl/workbook.xml gives xl/_rels/workbook.xml.rels, and the package itself, the empty text, gives _rels/.rels.
|
Full Usage:
resolveTarget folder target
Parameters:
string
target : string
Returns: string
|
Resolves the target of a relationship against the folder of the part that has the relationship. A target that starts with a slash starts at the package root. Returns the entry name without a leading slash.
|
GenPRES