September 23, 201015 yr Newbies Hi I have a word file that i would like to replace text in but i am new to scribe and word I have a bookmark in the word file called Text156 that i want to replace with what is currently contained in a field but i get the error "No occurrences of 'Text156' were found in the document. Try using a shorter placeholder string, as longer strings with spaces and other characters may not be recognizable due to extra metadata." my script contains the line ScribeDocSubstitute( "Text156"; PR_Invoice::PR number current ) I have tried many different combinations but i am now convinced i do not have a clue what i am doing or if i even can do what i want. i am currently evaluating 360 Scribe and others to find the easy / best one Currently testing on the client only
September 23, 201015 yr Word does very weird things with the XML data. Sometimes, if it finds what it considers to be a grammatical or spelling error, it will break that element into multiple XML chunks, which makes it impossible for Scribe to find and replace that text. In addition, to make things worse, sometimes if you edit just a piece of text, Word will break that into a separate XML block. So what I would recommend doing is to select the placeholder text in your word doc, and re-enter it. Ideally, put it in all uppercase, like 'TEXT156', so that Word does not try to do spelling or grammar checks on it. If you see a red or green underline on your placeholder, then Word is treating it as a spelling or grammar error and you'll run into problems.
September 23, 201015 yr Wow, that's really useful to know - Word may not treat sequences of characters, excluding invisible characters, as words!
Create an account or sign in to comment