4-2 Range - Finds null text
Hi,
Each time I run the sample 4-2 it fails to find the word "documents".
When I run in debug, this line of code always fails.
Word.Range singleSent = par.Sentences[2];
The par.Sentences.count always = 1. Shouldn't it be 3?
Here's the sample text from the AllSamples.doc:
"The range object is probably the most popular object in the Word hierarchy of objects. The range object is responsible for defining a contiguous block of text on the documents surface. The range object is very flexible and allows for the addressing of several different range objects at a time."
Also, I can see that: text = "". Should this display the text of the sentence?
Thanks for any assistance
|