Elixlsx.Writer (elixlsx v0.6.0) View Source

Contains functions to generate the individual files in the XLSX zip package.

Link to this section Summary

Functions

Returns a list of tuples {filename, filecontent}.

Returns files in the _rels/ directory.

Returns the filename _rels/.rels and it's content as a tuple.

Returns a tuple {'docProps/app.xml', "XML Data"}.

Returns files in the docProps directory.

Link to this section Types

Specs

zip_tuple() :: {charlist(), String.t()}

Link to this section Functions

Link to this function

create_files(workbook, wci)

View Source

Specs

Returns a list of tuples {filename, filecontent}.

Both filename and filecontent are represented as charlists (so that they can be used with the OTP :zip module.)

Specs

get__rels_dir(Elixlsx.Workbook.t()) :: [zip_tuple()]

Returns files in the _rels/ directory.

Specs

get__rels_dotrels(Elixlsx.Workbook.t()) :: zip_tuple()

Returns the filename _rels/.rels and it's content as a tuple.

Link to this function

get_contentTypes_xml(_, wci)

View Source

Specs

get_docProps_app_xml(Elixlsx.Workbook.t()) :: zip_tuple()

Returns a tuple {'docProps/app.xml', "XML Data"}.

Link to this function

get_docProps_core_xml(workbook)

View Source

Specs

get_docProps_core_xml(Elixlsx.Workbook.t()) :: zip_tuple()

Specs

get_docProps_dir(Elixlsx.Workbook.t()) :: [zip_tuple()]

Returns files in the docProps directory.

Link to this function

get_xl_rels_dir(_, sheetCompInfos, next_rId)

View Source

Specs

Link to this function

get_xl_sharedStrings_xml(_, wci)

View Source

Specs

get_xl_sharedStrings_xml(any(), Elixlsx.Compiler.WorkbookCompInfo.t()) ::
  zip_tuple()

Specs

Link to this function

get_xl_workbook_xml(data, sheetCompInfos)

View Source

Specs

Link to this function

get_xl_worksheets_dir(data, wci)

View Source

Specs

get_xl_worksheets_dir(
  Elixlsx.Workbook.t(),
  Elixlsx.Compiler.WorkbookCompInfo.t()
) :: [
  zip_tuple()
]