737 B
737 B
DOCX template contract
The preferred insertion point is a Content Control with tag or title DOC_BODY, then a bookmark named DOC_BODY, then the exact marker {{DOC_BODY}}. If none is present, generation fails explicitly; the body is never silently appended.
The template is copied to a temporary working file. Body headers/footers are not imported. Template sections and headers/footers are retained, fields are updated, and Word repaginates before saving.
Before Word starts, the template is checked for the insertion point. If none is found, the build is rejected without starting Word. The GUI routes .docx through Open XML and .txt through TextDocumentInspector; template and body analysis results remain independent.