Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
sdjwalls sdjwalls is offline
external usenet poster
 
Posts: 2
Default Embedding INCLUDETEXT in an IF changes styles

Hello,

I have a document that needs to pull in other documents based off of what is
in the Subject Document Property, and also have the Table of Contents and
List of Tables update properly (several headings and tables get included with
the inserted document).

If I use just the INCLUDETEXT on its own, it seems to work pretty well...the
doc is inserted, the headings styles look correct, and the TOC and LOT update
properly. My field:

{ INCLUDETEXT "BASE.doc" }

The proper TOC looks similar to:

1.1 Introduction ... 7
1.2 Base Config ..... 7
1.3 Base Config Desc ...8
1.3.1 Desc A ...8
1.3.2 Desc B ...9

However, if I put this INCLUDETEXT inside an IF statement, then things go
awry. The first heading in the included doc doesn't come out right, but next
heading in the included doc seems all right? The added tables do not show up
in the LOT at all when updated. And the TOC is very strange...where the
messed up heading occurred, I have something similar to:

{ if { DOCPROPERTY "Subject" } = "BASE" { INCLUDETEXT "BASE.doc" } }

1.1 Introduction ... 7
1.1 .......... 7
1.1 .......... 7
1.1.1 7
1.1.1 7
1.1.1 7
1.1.1 7
1.1.1 7
1.1.1 7
1.2 Base Config ..... 7
1.3 Base Config Desc ...8
1.3.1 Desc A ...8
1.3.2 Desc B ...9

Beside the fact that this looks odd (should look like example above, w/out
the IF), it doesn't match what the doc is actually showing.

Help is greatly appreciated! This would be wonderful it would actually work!

I saw similar posts, and tried several variations, but didn't find anything
that really matched this (or worked).

Thanks,
SDJWalls
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
embedding jpgs Darryl[_2_] Microsoft Word Help 6 July 29th 08 05:34 AM
embedding a file mccauley Page Layout 0 May 2nd 08 05:58 PM
PDF embedding MA Microsoft Word Help 2 January 18th 08 03:44 AM
embedding fonts Wal Green Microsoft Word Help 1 May 1st 05 02:23 AM
Possible to {includetext} without taking on styles of target? boswrit Microsoft Word Help 2 April 1st 05 01:49 PM


All times are GMT +1. The time now is 03:32 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"