Have a document

M

Michael Vardinghus

doing something weird with the combination of using field codes to get text
from another document at the
start of a bullet list.

This results in not showing the first bullet.

When removing field references it shows the correct result - would be a
problem alwas having to do that.

Are there somewhere you can post a file so someone else can take a look at
it ?
 
S

Stefan Blom

The formatting of the source document overrides the bullet formatting
in the document containing the reference. Display field codes (press
ALT+F9) and move the INCLUDETEXT field into an empty paragraph. This
should do the trick.

Note that if you need the same formatting in both documents, apply the
same style to the relevant paragraphs.
 
M

Michael Vardinghus

Examle + other advice - no luck with this one - move the includetext where ?


--> Start own example

IF {COMPARE {DOCVARIABLE "GARNEDDATO1" \* MERGEFORMAT} <> " " \*
MERGEFORMAT } = 1 {INCLUDETEXT "C:\FIL1.DOT" \* MERGEFORMAT} {INCLUDETEXT
"C:FIL2DOT" \* MERGEFORMAT} \* MERGEFORMAT}

The text in the first document is (sorry bout the danish...:):

Den 10. december nedskrives garantien til 10 % .....
Den 15. december nedskrives garantien yderligere til 2 % ...

When putting bullets around the code it shows up like this:

Den 10. december....
B. Den 15. december ...

And not like this:

A. Den 10. december
B. Den 15. december

But when hitting CTRL SHIFT F9 i get this

<-- Stop own example

--> Start advice 1

Let's get rid of all those mergeformats for a start.

Try:

{IF {COMPARE {DOCVARIABLE "GARNEDDATO1"} <> " " } = 1 "{INCLUDETEXT
"C:\\FIL1.DOT" \*charformat}"
"{INCLUDETEXT "C:\\FIL2.DOT" \*charformat}"}

and apply the bulleted paragraph style to the whole paragraph.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

<-- Stop advice 1
 
S

Stefan Blom

Since INCLUDETEXT is nested within other fields, of course you cannot
move just that field. What I meant was to keep the entire field
construct in a separate paragraph.

Add \* MERGEFORMAT to the field code and update the field. With the
field result displayed, apply the desired style to the referenced
paragraphs in the target document.

Note that this means that if paragraphs are added to the source
document, you'll have to apply the style to the new paragraphs of the
target document. Depending on how much the text of the source document
changes, this could be difficult to maintain.

A way to work around the problem (though perhaps not an ideal one) is
to format the text of the source document with the same style as that
of the target document and remove \* MERGEFORMAT from the INCLUDETEXT
field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top