Name
xlsx.UseSharedStrings -- toggle shared string mode
Synopsis
xlsx.UseSharedStrings(on)
Function
This function allows you to control whether or not strings assigned to cells should be stored in a global shared string table in the XLSX or whether they should be embedded individually in the cell nodes. It's typically more efficient to use a global shared string table because identical strings only need to be stored once in that table which will decrease the file size in case there are many identical strings. If for some reason you don't want to use a global shared string table, you can use xlsx.UseSharedStrings() to disable this functionality by passing False in the on parameter.

Note that this function will only be effective when adding new strings to a document. If you're opening a document that uses shared strings and save it again, it will still keep its shared strings, even if you have disabled shared string mode using this function. xlsx.UseSharedStrings() will only affect new strings added to the document.

By default the global shared string table is enabled.

Inputs
on
True to enable the global shared string table, False to disable it

Show TOC