DocX
DocX copied to clipboard
Cannot insert after save
Hi, I want to save the document every one minutes during a long writing. But I found that after calling document.save(), I can not insertparagraph anymore. Is this possible? or How to achieve this goal? Because my writing takes a long time, I don't want lost all the content if some errors happen during the writing. Thank you very much!
Hi, After calling document.Save(), you cannot insert paragraphs anymore because the document is considered closed. If you want to continue inserting paragraphs, you have 2 choices: -Insert every paragraphs before calling Save() -Call Save(), followed by Load() and continue inserting paragraphs, and finish will a call to Save().