A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Import Doc with TOC



 
 
Thread Tools Display Modes
  #1  
Old March 5th, 2009, 04:05 PM posted to microsoft.public.word.newusers
book_worm71[_2_]
external usenet poster
 
Posts: 12
Default Import Doc with TOC

I haven't been able to solve this issue. If there's no workaround for this
(or it's not reproducable), might anyone know of a better way to include a
chapter with its own TOC in my main document? Thanks.

I'm using IncludeText to insert chapters into my main document. One of the
chapters has it's own TOC, for the level 2 elements that it contains:

{TOC \o "2-2"}

When I simply use IncludeText to insert the file, the TOC appears and
updates perfectly. However, if I use an IF field around the IncludeText, I
get a bunch of blank headings that show up in the TOC right before the real
headings.

Here's how the output appears:

1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................Inherent Addressing 42
1.2....................Immediate Mode (IMM) 42
1.3....................Direct Mode (DIR) 43
1.4....................Extended Addressing (EXT) 43
1.5....................Indexed 5-Bit Constant Offset (IDX) 43
1.6....................Indexed Auto Pre/Post Decrement/Increment (IDX) 44
1.7....................Indexed Accumulator Offset (IDX) 44
1.8....................Indexed 9-Bit Constant Offset (IDX1) 44
1.9....................Indexed 16-Bit Constant Offset (IDX2) 45
1.10....................Indexed 16-Bit Constant Indirect ([IDX2]) 45
1.11....................Indexed D-Indirect ([D,IDX]) 45
1.12....................Multiple Addressing Modes 46

My code is as follows:

{if value="content" {includetext "document.doc"}}

Any help would be appreciated, thanks.
  #2  
Old March 6th, 2009, 02:01 PM posted to microsoft.public.word.newusers
Stefan Blom
external usenet poster
 
Posts: 8,433
Default Import Doc with TOC

I see no apparent problem with having tables of contents in files inserted
via INCLUDETEXT fields.

Try adding the \! switch to the INCLUDETEXT fields; that way, the tables of
contents (or any other fields in the included documents, for that matter)
cannot be updated from the target document, but only from the source
documents. Does that make a difference?

--
Stefan Blom
Microsoft Word MVP



"book_worm71" wrote in message
news
I haven't been able to solve this issue. If there's no workaround for this
(or it's not reproducable), might anyone know of a better way to include a
chapter with its own TOC in my main document? Thanks.

I'm using IncludeText to insert chapters into my main document. One of the
chapters has it's own TOC, for the level 2 elements that it contains:

{TOC \o "2-2"}

When I simply use IncludeText to insert the file, the TOC appears and
updates perfectly. However, if I use an IF field around the IncludeText, I
get a bunch of blank headings that show up in the TOC right before the
real
headings.

Here's how the output appears:

1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................Inherent Addressing 42
1.2....................Immediate Mode (IMM) 42
1.3....................Direct Mode (DIR) 43
1.4....................Extended Addressing (EXT) 43
1.5....................Indexed 5-Bit Constant Offset (IDX) 43
1.6....................Indexed Auto Pre/Post Decrement/Increment (IDX) 44
1.7....................Indexed Accumulator Offset (IDX) 44
1.8....................Indexed 9-Bit Constant Offset (IDX1) 44
1.9....................Indexed 16-Bit Constant Offset (IDX2) 45
1.10....................Indexed 16-Bit Constant Indirect ([IDX2]) 45
1.11....................Indexed D-Indirect ([D,IDX]) 45
1.12....................Multiple Addressing Modes 46

My code is as follows:

{if value="content" {includetext "document.doc"}}

Any help would be appreciated, thanks.




  #3  
Old March 6th, 2009, 04:15 PM posted to microsoft.public.word.newusers
book_worm71[_2_]
external usenet poster
 
Posts: 12
Default Import Doc with TOC

Stefan, thanks again - the /! switch seems to fix the problem that occurs
when I use the {IF} field. The table of contents now appears properly. I
really appreciate your help.

Sincerely,
Keith

"Stefan Blom" wrote:

I see no apparent problem with having tables of contents in files inserted
via INCLUDETEXT fields.

Try adding the \! switch to the INCLUDETEXT fields; that way, the tables of
contents (or any other fields in the included documents, for that matter)
cannot be updated from the target document, but only from the source
documents. Does that make a difference?

--
Stefan Blom
Microsoft Word MVP



"book_worm71" wrote in message
news
I haven't been able to solve this issue. If there's no workaround for this
(or it's not reproducable), might anyone know of a better way to include a
chapter with its own TOC in my main document? Thanks.

I'm using IncludeText to insert chapters into my main document. One of the
chapters has it's own TOC, for the level 2 elements that it contains:

{TOC \o "2-2"}

When I simply use IncludeText to insert the file, the TOC appears and
updates perfectly. However, if I use an IF field around the IncludeText, I
get a bunch of blank headings that show up in the TOC right before the
real
headings.

Here's how the output appears:

1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................Inherent Addressing 42
1.2....................Immediate Mode (IMM) 42
1.3....................Direct Mode (DIR) 43
1.4....................Extended Addressing (EXT) 43
1.5....................Indexed 5-Bit Constant Offset (IDX) 43
1.6....................Indexed Auto Pre/Post Decrement/Increment (IDX) 44
1.7....................Indexed Accumulator Offset (IDX) 44
1.8....................Indexed 9-Bit Constant Offset (IDX1) 44
1.9....................Indexed 16-Bit Constant Offset (IDX2) 45
1.10....................Indexed 16-Bit Constant Indirect ([IDX2]) 45
1.11....................Indexed D-Indirect ([D,IDX]) 45
1.12....................Multiple Addressing Modes 46

My code is as follows:

{if value="content" {includetext "document.doc"}}

Any help would be appreciated, thanks.





  #4  
Old March 9th, 2009, 10:24 AM posted to microsoft.public.word.newusers
Stefan Blom
external usenet poster
 
Posts: 8,433
Default Import Doc with TOC

You are welcome, and thank you for the feedback. :-)

--
Stefan Blom
Microsoft Word MVP



"book_worm71" wrote in message
...
Stefan, thanks again - the /! switch seems to fix the problem that occurs
when I use the {IF} field. The table of contents now appears properly. I
really appreciate your help.

Sincerely,
Keith

"Stefan Blom" wrote:

I see no apparent problem with having tables of contents in files
inserted
via INCLUDETEXT fields.

Try adding the \! switch to the INCLUDETEXT fields; that way, the tables
of
contents (or any other fields in the included documents, for that matter)
cannot be updated from the target document, but only from the source
documents. Does that make a difference?

--
Stefan Blom
Microsoft Word MVP



"book_worm71" wrote in message
news
I haven't been able to solve this issue. If there's no workaround for
this
(or it's not reproducable), might anyone know of a better way to
include a
chapter with its own TOC in my main document? Thanks.

I'm using IncludeText to insert chapters into my main document. One of
the
chapters has it's own TOC, for the level 2 elements that it contains:

{TOC \o "2-2"}

When I simply use IncludeText to insert the file, the TOC appears and
updates perfectly. However, if I use an IF field around the
IncludeText, I
get a bunch of blank headings that show up in the TOC right before the
real
headings.

Here's how the output appears:

1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................42
1.1....................Inherent Addressing 42
1.2....................Immediate Mode (IMM) 42
1.3....................Direct Mode (DIR) 43
1.4....................Extended Addressing (EXT) 43
1.5....................Indexed 5-Bit Constant Offset (IDX) 43
1.6....................Indexed Auto Pre/Post Decrement/Increment (IDX)
44
1.7....................Indexed Accumulator Offset (IDX) 44
1.8....................Indexed 9-Bit Constant Offset (IDX1) 44
1.9....................Indexed 16-Bit Constant Offset (IDX2) 45
1.10....................Indexed 16-Bit Constant Indirect ([IDX2]) 45
1.11....................Indexed D-Indirect ([D,IDX]) 45
1.12....................Multiple Addressing Modes 46

My code is as follows:

{if value="content" {includetext "document.doc"}}

Any help would be appreciated, thanks.







 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.