View Single Post
  #5   Report Post  
Posted to microsoft.public.word.newusers
CyberTaz CyberTaz is offline
external usenet poster
 
Posts: 1,291
Default Optionally hiding text in a complicated document

"John Clark" wrote in message
news:000101c7bcce$ad18b170$fefea8c0@haengma...
(My apologies if you get multiple postings of this message - I'm
fighting with my news group reader at the moment...)

CyberTaz mailto:typegeneraltaz1ATcomcastdotnet scribbled on Monday,
July 02, 2007 11:58 AM:

No offense - I'm not being sarcastic - but it may seem less
"strange/wrong/broken" if you keep in mind that Word is primarily
designed/intended to be a word processing program to deliver printed
documents. What you describe sounds more like a web page

No offense taken, but I don't think that my usage here is a big stretch
from the primary purpose of MS Word - I am looking at this as a document
that basically has two different print modes - the first mode displays
all values of each contained list, the second mode displays only the
first 5 values in each list - with an indication that there are more
values not shown. I agree that this information could be shown on a
web page, but in this case, a printed document is the primary delivery
method for this information.

My comment on "strange/wrong/broken" was simply that there are two
different switches on the Tools | Options | View panel - one for "Hidden
text" and one for "Field codes" - in my mind, if the field codes switch
is not selected, the document shouldn't display field codes - however,
the application seems to display field codes if either "Field codes", or
"Hidden Text" are selected, and there does not appear to be a way to
turn off the display of field codes if hidden text is selected to be
shown.

Not out of the question, though. However, your document has to be
treated as a Form. You may want to turn on the Web Tools toolbar &
research the use of the tools it provides - such as Drop Down Boxes &
List Boxes.


I'll do this research, but I am not sure a form is what I am looking for
- again, the primary delivery of the information in the document is as a
printed document - are forms a good fit for this delivery?

This is just one approach, but I'm sure some other suggestions will be


offered. It would probably be helpful to know more about what the type


of content in these lists amounts to & how the document will be
used.


The document is technical documentation of a database - in documenting
each column in the database it is possible that the column has a related
list of values that are valid for that column.

In one mode, the document should exhaustively list every possible valid
value for the columns that have domains associated to them. In the
second mode, the document should list the first 5 values of the domain,
and state that there are additional valid values that are not listed.
What I have done is assign one style to valid values in list position
6+, and another style to text that says "Additional valid values
exist..." that is added at the end of each list. Then I have written a
macro that basically does the following:

If ActiveDocument.Styles("List Members Hidden").Font.Hidden Then
ActiveDocument.Styles("List Members Hidden").Font.Hidden = False
ActiveDocument.Styles("Additional List Items").Font.Hidden =
True
Else
ActiveDocument.Styles("List Members Hidden").Font.Hidden = True
ActiveDocument.Styles("Additional List Items").Font.Hidden =
False
End If

Running the macro should toggle the display of the valid values in
position 6 and beyond (I say should because I am having some problems
getting the "Additional List Items" text to display - I am still working
on figuring out what's going on there).

My question at this point is whether this is the best way to do this, or
if there is a better way - if you still think forms are what I need, I
will look into those more completely.

Thanks
-jdc

Like Lene, I took from your original post that users had to manipulate this
on screen.

If printing is your only concern, perhaps I'm being a little dense but I
don't see where the problem is. The display of text formatted as Hidden is
triggered along with Formatting Marks (*non-printing* characters), such as
the ¶ at the end of paragraphs. Having these characters visible has nothing
to do with _field codes_ and has no impact on the printed page. They're only
visible on screen - primarily to indicate white space where nothing will
print & why. Field codes, OTOH, are toggled on/off by the Alt+F9 keystroke
regardless of whether non-printing characters and Hidden text are displayed.

Also, the Hidden text *can* be displayed independently of the other
Formatting Marks. ToolsPreferencesView has checkboxes for the individual
Formatting Marks so you can display only the ones you want in any
combination you wish... one of which is Hidden.
--
Regards |:)
Bob Jones
[MVP] Office:Mac