Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can xlsxwriter use another file as a template?

Can xlsxwriter object use a template of another excel file?

I tried to use xlsr but it can't use a template.

I am using xlsxwriter since I am writing more the 65335 lines.

Thanks.

like image 669
Barak Rosenfeld Avatar asked Nov 06 '14 08:11

Barak Rosenfeld


People also ask

Can XlsxWriter open existing workbook?

This only works for a workbook/worksheet created with XlsxWriter. XlsxWriter cannot read an existing file.

What is difference between Openpyxl and XlsxWriter?

XlsxWriter vs openpyxl: What are the differences? Developers describe XlsxWriter as "A Python module for creating Excel XLSX files". A Python module for creating Excel XLSX files. On the other hand, openpyxl is detailed as "A Python library to read/write Excel 2010 xlsx/xlsm files".


1 Answers

From the XlsxWriter FAQ:

Q. Can XlsxWriter use an existing Excel file as a template?

No.

XlsxWriter is designed only as a file writer. It cannot read or modify an existing Excel file.

OpenPyXL can read and rewrite files and handle the Excel 2007 format.

like image 59
jmcnamara Avatar answered Sep 22 '22 14:09

jmcnamara