Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional VSTO 2005 ISBN: 0-471-78813-9
This is the forum to discuss the Wrox book Professional VSTO 2005: Visual Studio 2005 Tools for Office by Alvin Bruney; ISBN: 9780471788133
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional VSTO 2005 ISBN: 0-471-78813-9 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old December 15th, 2007, 06:23 PM
Authorized User
Join Date: Sep 2007
Location: , VA, USA.
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default 4-2 Range - Finds null text


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

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show text in datalist while value in NULL nittin14 ASP.NET 1.0 and 1.1 Basics 4 September 1st, 2007 06:28 PM
firstchild.text is null... darkhalf XML 2 July 30th, 2007 09:57 PM
how to find text within range of two tags dipsut XSLT 3 May 25th, 2007 04:27 PM
How to set Not Null constraint to Null Columns arasu Oracle 1 August 22nd, 2005 10:09 AM
Don;t diplay text box if it is empty or null abdul_wasie Classic ASP Databases 5 May 20th, 2005 11:49 PM

All times are GMT -4. The time now is 05:22 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.