GetOOXMLSpreadsheetRows (open)
Export the first sheet of an Excel (XLSX) file
Syntax
LOADLIB "wh::ooxml/spreadsheet.whlib";
RECORD ARRAY FUNCTION GetOOXMLSpreadsheetRows(BLOB xlsxdoc, RECORD options)Parameters
BLOB xlsxdocDocument to load
RECORD optionsOptions
alltostringReturn all columns as strings (defaults to TRUE)
dotrimwhitespaceTrim all whitespace from strings (defaults to true)
floatmodeHow to convert numbers: "integer", "money" (rounds to money and omits trailing zeroes) or "float"
FUNCTION PTR onprogressCallback that will periodically receive progress records as we import the file. Progress records contain 'cur'(rent) row (0-baesd) and 'total' and do not count the header row
processheadersProcess the first row as headers (defaults to TRUE)
Return value
RECORD ARRAYExtracted rows