p2p.wrox.com 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 15th, 2007, 07:23 PM
Authorized User
 
Join Date: Sep 2007
Location: , VA, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 07:28 PM
firstchild.text is null... darkhalf XML 2 July 30th, 2007 10:57 PM
how to find text within range of two tags dipsut XSLT 3 May 25th, 2007 05:27 PM
How to set Not Null constraint to Null Columns arasu Oracle 1 August 22nd, 2005 11:09 AM
Don;t diplay text box if it is empty or null abdul_wasie Classic ASP Databases 5 May 21st, 2005 12:49 AM



All times are GMT -4. The time now is 03:17 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc