Newbies gabradshaw Posted September 23, 2010 Newbies Posted September 23, 2010 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
Jesse Barnum Posted September 23, 2010 Posted September 23, 2010 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.
Tim Anderson Posted September 23, 2010 Posted September 23, 2010 Wow, that's really useful to know - Word may not treat sequences of characters, excluding invisible characters, as words!
Recommended Posts
This topic is 5186 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now