putdocx clear allows to close the active document without saving, but is there a way to save without closing? I want to save the active document in a folder, then keep the same document active to add more things, then save the updated document to a different folder. For example:
I tried preserve and restore, but putdocx save seems to ignore it:
Any help would be greatly appreciated. Thanks!
Code:
putdocx begin putdocx paragraph putdocx text ("Info") mkdir "folder1" putdocx save "folder1/doc1.docx", replace // first doc saved OK putdocx paragraph // error, doc is no longer active; how do I save without closing?
Code:
putdocx clear putdocx begin putdocx paragraph putdocx text ("Info") preserve putdocx save "folder1/doc1.docx", replace restore putdocx paragraph // error, document was closed anyway
Comment