Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2006

Tip: Looking for answers? Try searching our database.

Detecting hidden text when it's hidden

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bear - 02 Feb 2006 17:43 GMT
When the formatting marks (and hidden text) are toggled off (not showing) in
a document, how can I determine whether or not the selection contains hidden
text? Or whether the paragraph before or after the selection is hidden?

I'm trying to put a frame around the selected paragraphs, anchored in the
following paragraph. But if a hidden paragraph precedes the selection, it
somehow always gets included in the framed material.

Similarly, if a hidden paragraphs follows the selection, the frame gets
anchored in the hidden paragraph. (I'm sure that will be a problem.)

I just need to detect hidden paragraphs and warn the user. But how?

Bear
Cindy M  -WordMVP- - 03 Feb 2006 17:52 GMT
Hi =?Utf-8?B?QmVhcg==?=,

> When the formatting marks (and hidden text) are toggled off (not showing) in
> a document, how can I determine whether or not the selection contains hidden
[quoted text clipped - 8 lines]
>  
> I just need to detect hidden paragraphs and warn the user. But how?

One possibility would be to use the TextRetrievalMode. For example, you could
query the range once with IncludeHiddenText set to True, and again with it set
to false. compare the two results. If they're different, there's likely hidden
text...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
Bear - 04 Feb 2006 12:55 GMT
Cindy:

Perfect! Thanks a bunch!

Bear

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.