How can I insert a checkbox form into a .docx file using python-docx?
问题 I've been using python to implement a custom parser and use that parsed data to format a word document to be distributed internally. All of the formatting has been straightforward and easy so far but I'm completely stumped on how to insert a checkbox into individual table cells. I've tried using the python object functions within python-docx (using get_or_add_tcPr() , etc.) which causes MS Word to throw the following error when I try to open the file, "The file xxxx cannot be opened because