Hello!
I need to use find and replace via headless, but I have not found a way to do that.
Currently I uncompressed a .docx file and try to locate and replace it directly in the xml file, but often there are tags being opened and closed in the middle of my search string.
I have a template .docx file, and I need to replace certain strings with others, for example a lease, where I need to put name, address and other information via programming.
How i can do it?
Programmatically headless search and replace
Programmatically headless search and replace
OpenOffice 4 on CentOS 7
Re: Programmatically headless search and replace
You could use User defined fields; see this article for some helpful information
https://www.techrepublic.com/blog/linux ... penoffice/
I am not certain that "headless" is the way to go - there might be too many substitute fields for convenient and reliable handling.
https://www.techrepublic.com/blog/linux ... penoffice/
I am not certain that "headless" is the way to go - there might be too many substitute fields for convenient and reliable handling.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Programmatically headless search and replace
Thanks RoryOF
Any bookmark / variable that I could find directly in the file word / document.xml would already work perfectly.
Any bookmark / variable that I could find directly in the file word / document.xml would already work perfectly.
OpenOffice 4 on CentOS 7
Re: Programmatically headless search and replace
I'm looking to use mono + openxml SDK on CentOS
OpenOffice 4 on CentOS 7