
Signature
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
> Wow, thank you for the quick response. Unfortunately for me, that
> doesn't appear to be the problem. I'll explain further.
[quoted text clipped - 58 lines]
> > >
> > > Jeff
Yep, I am sure. To eliminate the possibility that something else weird
was going on in my files, I used this example as a test:
Create new file ("filetoindex.doc"), and with fields visible fill
entire first page and part of second with {XE "one"}
On second page, add an {XE "two"}
Now, when the index is generated with fields showing you get:
one, 1, 2 two, 2
Generate the index without fields showing (looks like a blank document)
you get:
one, 1 two, 1
Now, create a second file consisting of only a { rd filetoindex.doc }
Insert the index and you get:
one, 1, 2 two, 2
but what is desired is the index that was created without fields
showing:
one, 1 two, 1
and that is what I can't get to happen. It looks like Word always
reads files with fields showing when using rd.
Jeff
Stein Kristiansen - 04 Jan 2006 06:28 GMT
Have someone found a solution to this?
I have exactly the same problem. I'm writing an instructional manual where I
use hidden text for information to the instructor. To print out the student
version of the book I just hide the hidden text and print it out.
The problem is that when I try to generate a TOC for the student verision
using RD fields the page numbering in the generated TOC always includes the
hidden text.
I have even used a macro to go through all the Refeenced Documents and made
sure that ShowAll, ShowHiddenText, ShowFieldCodes are all set to FALSE before
the documents are repaginated and saved before the TOC are updated. It
doesn't help, the page numbering is still wrong.
Another intresting abservation is that if the Referenced Documents are open
when I update the TOC I get "Error! Bookmark not defined." instead of page
numbers?????
If anyone has a solution I would be very greatful.
Regards
Stein
> Yep, I am sure. To eliminate the possibility that something else weird
> was going on in my files, I used this example as a test:
[quoted text clipped - 22 lines]
>
> Jeff
Jeff Gilbertson - 06 Jan 2006 15:43 GMT
I think we are out of luck. Your situation is a little more workable
(though still a pain) in that you can concatenate the individual TOC
created in each file into the master TOC with cut/paste. It's probably
a good idea to convert the table to text with CTRL+SHIFT+F9 so it
doesn't try to update the page numbers again after TOC generation.
This won't work for my problem (index generation) as each individual
index needs to be merged with the others, not concatenated.
I figure what is happening with your "Error! Bookmark not defined"
problem is that when the referenced documents are open, it "locks out"
the master TOC file from reading it, as if it were being edited by
another user. The solution there is just not to have the referenced
files open.
Jeff
Stein Kristiansen - 09 Jan 2006 07:00 GMT
Jeff,
Thanks for your answer. I spent several days last week to try to solve this
problem. One of my biggest concern is that Word dosen't seem to be consistent.
In the beggining of the week Word included all the hidden text in the page
numbering when I was creating the TOC, at the end of the week it wasn't. I
wonder if there is a hidden switch somewere inside Word that tells it to
include/exlcude hidden text when it generates TOC?
I ended up with two different macros.
If Word includes the hidden text in the page numbering generating the TOC: I
get a TOC that is correct for the Instructor version of the book. To generate
the TOC for the Student version I have to use a macro that runs through all
the RD documents and delete all text that has the hidden attribute set before
the TOC is generated.
If Word excludes the hidden text in the page numbering: I get a TOC that is
correct for the Student version. To generate the TOC for the Instructor
version the macro must only run through all the documents and turn off the
hidden attribute before generating the TOC.
Both these two macro must be run on copies of the original files because
after the TOC generation these modified documents are no longer correct and
must be deleted.
As a basis for my macros I used the examples on the following page:
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=148
On that page you will also find a description how to modify them so that you
can get a consolidated index. Maybe that can solve your problem.
Stein