L
Lynn
First off this is a first post to this group, so I
apologize if this is old ground. Secondly, I've been
working this for over two weeks, so I am bit frustrated and
it may show.
Now for the problem I am having. I have a fairly large
(18.5 Meg) Word file. It contains some 2000+ cross
references. Our final deliverable to our customer is a PDF
file. Our customer has requested that all internal links
(i.e., cross references) be identifiable in the PDF text
without having to run the pointer over the hot spot. They
have requested the "links" appear in blue underline.
Now that is fairly simple. Do a global search and replace
for all the REF in the hidden codes. Now here is where the
problem really starts. In the 'normal' view mode
(sometimes even in the 'print layout'), immediately after
running the search and replace, each of the cross
references shows the new style. However, when I go to the
'print layout' view, many of the cross references no longer
show the style.
After a significant amount of digging around (it's a shame
Macro$carf never felt that a reval codes such as
WordPerfect has wasn't needed for Word), I think I found
why the styles are changing. As (I think) we all know,
Word inserts a reference code where the cross reference is
inserted that is resolved to the text/value (i.e., maybe a
title or paragraph or table number) where the reference is
pointing. Well it seems that some of the values we are
pointing to have their own style (i.e., table numbers and
titles have their own style) and this style is carried back
to the resolved cross reference data.
I am going to use tables as my example, but there are other
cases doing the same thing. If I can fix one, I can then
(hopefully) apply the same criteria to the others.
Word has shown me it can handle (to some degree at least)
this mixed bag of styles. Some of the references to tables
appear with the style for the linked (the blue underline)
text, others, sometimes the very next piece of text, do not.
Using the field codes, I have been able to determine that
Word is not putting in a 'MERGEFORMAT' code in all the
changes. So what I wind up with as I move through the
document a character at a time is:
the normal style, the link style for one cursor movement,
then into the reference text and the style from whereever
this reference text came from.
When I go into the refernce code field, the style says it
is the link style, but as soon as I set the codes off and
go back to the resolved text, I'm back to the above.
I've tried copying and pasting the 'MERGEFORMAT' data from
one REF to another, that doesn't work. Running the search
and replace doesn't work because the REF only shows the
line style.
Another thing that I found is that some of the references
that are working, showing the style DO NOT have the
MERGEFORMAT in the REF. Just to add confusion to the problem.
So how does one fix this problem? Going through doing a
manual fix is not an alternative. As it is, the output is
totally unacceptable.
I aplolgize for the length of this post, but felt an
explanation of what I've done was in order.
One last thing, I have worked this file in Word 2000, 2002
and 2003 on machines with Windows 2000 and XP. While I'm
on the OS, I've run the PDF conversion on three machines.
Two with XP and one with 2000. The XP machines take at
least three hours to run the conversion, usually four plus.
Depending on the system, I also have been getting a Word
error messge stating that "Word doesn't have enough memory"
and that the changes cannot be undone. The Win2K with Word
2000 (on a P3 no less) zips through in about an hour.
Many thanks.
apologize if this is old ground. Secondly, I've been
working this for over two weeks, so I am bit frustrated and
it may show.
Now for the problem I am having. I have a fairly large
(18.5 Meg) Word file. It contains some 2000+ cross
references. Our final deliverable to our customer is a PDF
file. Our customer has requested that all internal links
(i.e., cross references) be identifiable in the PDF text
without having to run the pointer over the hot spot. They
have requested the "links" appear in blue underline.
Now that is fairly simple. Do a global search and replace
for all the REF in the hidden codes. Now here is where the
problem really starts. In the 'normal' view mode
(sometimes even in the 'print layout'), immediately after
running the search and replace, each of the cross
references shows the new style. However, when I go to the
'print layout' view, many of the cross references no longer
show the style.
After a significant amount of digging around (it's a shame
Macro$carf never felt that a reval codes such as
WordPerfect has wasn't needed for Word), I think I found
why the styles are changing. As (I think) we all know,
Word inserts a reference code where the cross reference is
inserted that is resolved to the text/value (i.e., maybe a
title or paragraph or table number) where the reference is
pointing. Well it seems that some of the values we are
pointing to have their own style (i.e., table numbers and
titles have their own style) and this style is carried back
to the resolved cross reference data.
I am going to use tables as my example, but there are other
cases doing the same thing. If I can fix one, I can then
(hopefully) apply the same criteria to the others.
Word has shown me it can handle (to some degree at least)
this mixed bag of styles. Some of the references to tables
appear with the style for the linked (the blue underline)
text, others, sometimes the very next piece of text, do not.
Using the field codes, I have been able to determine that
Word is not putting in a 'MERGEFORMAT' code in all the
changes. So what I wind up with as I move through the
document a character at a time is:
the normal style, the link style for one cursor movement,
then into the reference text and the style from whereever
this reference text came from.
When I go into the refernce code field, the style says it
is the link style, but as soon as I set the codes off and
go back to the resolved text, I'm back to the above.
I've tried copying and pasting the 'MERGEFORMAT' data from
one REF to another, that doesn't work. Running the search
and replace doesn't work because the REF only shows the
line style.
Another thing that I found is that some of the references
that are working, showing the style DO NOT have the
MERGEFORMAT in the REF. Just to add confusion to the problem.
So how does one fix this problem? Going through doing a
manual fix is not an alternative. As it is, the output is
totally unacceptable.
I aplolgize for the length of this post, but felt an
explanation of what I've done was in order.
One last thing, I have worked this file in Word 2000, 2002
and 2003 on machines with Windows 2000 and XP. While I'm
on the OS, I've run the PDF conversion on three machines.
Two with XP and one with 2000. The XP machines take at
least three hours to run the conversion, usually four plus.
Depending on the system, I also have been getting a Word
error messge stating that "Word doesn't have enough memory"
and that the changes cannot be undone. The Win2K with Word
2000 (on a P3 no less) zips through in about an hour.
Many thanks.