When the document is finished, the customer runs some winword-macro to do some changes. To be able to do this, the output must be flushed.
Introduced a new qrl-function
void finalize_document(boolean commit)
When called with commit == True the document gets closed and the output is flushed
When called with commit == False, the document is discarded.