|
libxlsxwriter
|
The section outlines some answers to some frequently asked questions.
No.
Libxlsxwriter is designed only as a file writer. It cannot read or modify an existing Excel file.
Due to a wide range of possible formulas and the inter-dependencies between them libxlsxwriter doesn't, and realistically cannot, calculate the result of a formula when it is written to an XLSX file. Instead, it stores the value 0 as the formula result. It then sets a global flag in the XLSX file to say that all formulas and functions should be recalculated when the file is opened.
This is the method recommended in the Excel documentation and in general it works fine with spreadsheet applications. However, applications that don't have a facility to calculate formulas, such as Excel Viewer, or several mobile applications, will only display the 0 results.
If required, it is also possible to specify the calculated result of the formula using the worksheet_write_formula_num() function.
Currently no. However, it is a planned features to allow cell formats and data to be written separately.
Yes. See Using vcpkg for Microsoft Visual Studio.
All supported features are documented. In time the feature set may expand to include more of the functionality of the Python XlsxWriter module.
Unfortunately, there is no way to specify "AutoFit" for a column in the Excel file format. This feature is only available at runtime from within Excel. It is possible to simulate "AutoFit" by tracking the width of the data in the column as your write it.
Although it is possible to password protect a worksheet using the Worksheet protect method it isn't possible to password protect the entire workbook/file using XlsxWriter.
The reason for this is that a protected/encrypted xlsx file is in a different format from an ordinary xlsx file. This would require a lot of additional work, and testing, and isn't something that is on the XlsxWriter roadmap.
However, it is possible to password protect an XlsxWriter generated file using a third party open source tool called msoffice-crypt. This works for macOS, Linux and Windows:
Apart from this question, yes.
Next: Known Issues and Bugs