Read and replace contents in .docx (Word) file
问题 I need to replace content in some word documents based on User input. I am trying to read a template file (e.g. "template.docx"), and replace First name {fname}, Address {address} etc. template.docx: To, The Office, {officeaddress} Sub: Authorization Letter Sir / Madam, I/We hereby authorize to {Ename} whose signature is attested here below, to submit application and collect Residential permit for {name} Kindly allow him to support our International assignee {name} {Ename} Is there a way to