I am quite stumped at the moment. I was able to codify a simple template system, which is the template word dock (Python) generates words from docs.
My problem is that the text in "text field" is not found in that way. Even there is no substitute for finding everything in the word itself - you really have to choose between "main document" and "text field". Due to being new to the Windows world, I tried to browse VBA docs for this but there was no help (probably a very common word due to "text field").
word.Documents.Open f) wdFindContinue = 1 wdReplaceAll = 2 find_str = '\ {\ {(*) \} \}' looks = words Selection. Search Search While searching (search_str, false, false, true, false, false, true, wdFindContinue (false, false, false), fruit: t = word selection. Text .__ str __ () r = process_location (t , Code: True, false, false, false, true, wrong, wrong, r, wdReplaceAll)
I have been able to withstand all the problems (signal: if you have more than 256 characters To wire with , You have to do it through the clipboard ...)
Maybe you have component technology Using OpenOffice, you can connect with an open office example running in headless mode. See it to get started.
This is probably an overkill for your scenario, but it is very powerful And there is a flexible solution.
Comments
Post a Comment