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 / November 2005

Tip: Looking for answers? Try searching our database.

Show/hide large pieces of a document?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason Weiss - 15 Nov 2005 23:06 GMT
Hi,

Here's an interesting challenge...  I was asked to create an application
that would let users choose paragraphs to show or hide using a checkbox.
The basic idea is that they would look at several alternate paragraphs per
page, choose one by checking its checkbox, and then generate the "final"
version of the document, which would hide the non-checked paragraphs on each
page.  In some cases, entire pages could be shown or hidden with page-level
checkboxes in addition to the paragraph-level checkboxes (e.g., if a page is
checked, only show the paragraphs on that page that are also checked).

I don't know where to start on this one.  I've fiddled around with bookmarks
and ranges, and neither seems to offer an easy answer.  Can anyone offer any
good suggestions to make this a straightforward kind of project?

Thanks to anyone who can help...

...Jay
Jezebel - 16 Nov 2005 00:04 GMT
The short answer is: Word is not a good choice for what you're trying to do.
You can do all the bits of the task (selecting paragraphs, showing and
hiding, etc); but the mechanism ultimately relies on the structure of the
document, and as soon as you let people edit the document, you can't rely on
the structure remaining stable.

The best you can do is define bookmarks for the selectable paragraphs or
sections; then set the unselected matter to Hidden, either directly through
the Font object, or by applying a style.

There's no way show/hide pages in Word. Pages are not part of the document
structure as such (and don't figure in the object model) -- they are an
output of the document rendering, according to visible content, printer,
etc.

Another approach is to store your pages and paragraphs separately in a
database, then use Word to construct your output using only the selected
material. There are commercial applications around already that do precisely
that.

> Hi,
>
[quoted text clipped - 19 lines]
>
> ...Jay

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.