View Source xlerl (xlerl v0.1.0)
Summary
Functions
add_shared_string(String, Xlsx)
deprecated
Parses a file binary expecting an xlsx zip file
Extract a single value in a precise locations on a selected sheet
Re-assembles the XLSX zip archive exporting all XML elements in binaries.
Directly inserts values in precise locations on a selected sheet
Functions
-spec parse({Filename :: file:name(), Binary :: binary()}) -> {ok, Xlsx :: map()} | {error, Reason :: term()}.
Parses a file binary expecting an xlsx zip file
Unpacks the zip and returns a map with the parsed content of each file. Internal binary files are left untouched. #{InternalFilenamePath => XmerlParsedContent}-spec read(SheetName :: string(), Column :: string(), Row :: string(), Xlsx :: map()) -> Value :: string().
Extract a single value in a precise locations on a selected sheet
Returns 'empty' if the cell is empty.-spec write(SheetName :: string(), Column :: string(), Row :: string(), Value :: term(), Xlsx :: map()) -> NewXlsx :: map().
Directly inserts values in precise locations on a selected sheet
For now it expects sheets with unique names, which might not always be the case.