Hi all,

I have a VB6 app that creates a document based on a template.

This template has a TOC on the first page and an autotext entry with various
bookmarks is set up. The first field on the autotext enty (ie. the first
bookmark) is a Name field and is set up to print a new page break before.
The TOC is set up to use the Name bookmark instead of the heading fields.

I generate the document, but the TOC is out of sync. The entry names are
fine and in order but the page numbers are funny. The first is 3, for
example, and the other are all 2.

Do I need to configure the TOC in another way?

Thanks,
Ivan

Re: TOC Automation problem by Word

Word
Sun Aug 29 18:32:09 CDT 2004

G'day "Ivan Debono" <ivanmdeb@hotmail.com>,

Have you updated the TOC twice? First time gets the page numbers as
present, but if the TOC grows beyond its page it will throw all these
out.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Ivan Debono reckoned:

>Hi all,
>
>I have a VB6 app that creates a document based on a template.
>
>This template has a TOC on the first page and an autotext entry with various
>bookmarks is set up. The first field on the autotext enty (ie. the first
>bookmark) is a Name field and is set up to print a new page break before.
>The TOC is set up to use the Name bookmark instead of the heading fields.
>
>I generate the document, but the TOC is out of sync. The entry names are
>fine and in order but the page numbers are funny. The first is 3, for
>example, and the other are all 2.
>
>Do I need to configure the TOC in another way?
>
>Thanks,
>Ivan
>


Re: TOC Automation problem by Ivan

Ivan
Sun Aug 29 22:58:04 CDT 2004

I tried that too but to no avail. I've only 5 entries in the TOC. Does it
need special field codes?
I've also based by Name field on Heading 1.

Ivan

"Word Heretic" <myfullname@tpg.com.au> schrieb im Newsbeitrag
news:bqp4j05a9gbpj602shj5a79q8cr5j2odfr@4ax.com...
> G'day "Ivan Debono" <ivanmdeb@hotmail.com>,
>
> Have you updated the TOC twice? First time gets the page numbers as
> present, but if the TOC grows beyond its page it will throw all these
> out.
>
> Steve Hudson - Word Heretic
> Want a hyperlinked index? S/W R&D? See WordHeretic.com
>
> steve from wordheretic.com (Email replies require payment)
>
>
> Ivan Debono reckoned:
>
> >Hi all,
> >
> >I have a VB6 app that creates a document based on a template.
> >
> >This template has a TOC on the first page and an autotext entry with
various
> >bookmarks is set up. The first field on the autotext enty (ie. the first
> >bookmark) is a Name field and is set up to print a new page break before.
> >The TOC is set up to use the Name bookmark instead of the heading fields.
> >
> >I generate the document, but the TOC is out of sync. The entry names are
> >fine and in order but the page numbers are funny. The first is 3, for
> >example, and the other are all 2.
> >
> >Do I need to configure the TOC in another way?
> >
> >Thanks,
> >Ivan
> >
>



Re: TOC Automation problem by Word

Word
Mon Aug 30 18:09:45 CDT 2004

G'day "Ivan Debono" <ivanmdeb@hotmail.com>,

Try a Maggie: Cut everything except the last para mark in each section
to a new document. If this doesn't work, you may have to email the doc
to me for a quick squizz.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Ivan Debono reckoned:

>I tried that too but to no avail. I've only 5 entries in the TOC. Does it
>need special field codes?
>I've also based by Name field on Heading 1.
>
>Ivan
>
>"Word Heretic" <myfullname@tpg.com.au> schrieb im Newsbeitrag
>news:bqp4j05a9gbpj602shj5a79q8cr5j2odfr@4ax.com...
>> G'day "Ivan Debono" <ivanmdeb@hotmail.com>,
>>
>> Have you updated the TOC twice? First time gets the page numbers as
>> present, but if the TOC grows beyond its page it will throw all these
>> out.
>>
>> Steve Hudson - Word Heretic
>> Want a hyperlinked index? S/W R&D? See WordHeretic.com
>>
>> steve from wordheretic.com (Email replies require payment)
>>
>>
>> Ivan Debono reckoned:
>>
>> >Hi all,
>> >
>> >I have a VB6 app that creates a document based on a template.
>> >
>> >This template has a TOC on the first page and an autotext entry with
>various
>> >bookmarks is set up. The first field on the autotext enty (ie. the first
>> >bookmark) is a Name field and is set up to print a new page break before.
>> >The TOC is set up to use the Name bookmark instead of the heading fields.
>> >
>> >I generate the document, but the TOC is out of sync. The entry names are
>> >fine and in order but the page numbers are funny. The first is 3, for
>> >example, and the other are all 2.
>> >
>> >Do I need to configure the TOC in another way?
>> >
>> >Thanks,
>> >Ivan
>> >
>>
>


Re: TOC Automation problem by Chad

Chad
Tue Aug 31 09:45:12 CDT 2004

Ivan,

Your page numbers are funny in the TOC because they are funny on the actual
pages. It looks as if you have a section's page numbering set to start at
2, and then you inserted a section break between each page. The new
sections inherited the page numbering format from the original section and
you neglected to go into the page number format for each new section and
change to 'continue from previous'. Once you fix the page numbering in the
body of the document, the page numbers in the TOC will resolve themselves to
what you expect to see.

Regards,
Chad


"Ivan Debono" <ivanmdeb@hotmail.com> wrote in message
news:uV9g8QxjEHA.2812@tk2msftngp13.phx.gbl...
> Did not work as well :(
>
> Attached is the document
>
> "Word Heretic" <myfullname@tpg.com.au> schrieb im Newsbeitrag
> news:src7j09u1rao71ohqhbg3fjapka8c103mo@4ax.com...
> > G'day "Ivan Debono" <ivanmdeb@hotmail.com>,
> >
> > Try a Maggie: Cut everything except the last para mark in each section
> > to a new document. If this doesn't work, you may have to email the doc
> > to me for a quick squizz.
> >
> > Steve Hudson - Word Heretic
> > Want a hyperlinked index? S/W R&D? See WordHeretic.com
> >
> > steve from wordheretic.com (Email replies require payment)
> >
> >
> > Ivan Debono reckoned:
> >
> > >I tried that too but to no avail. I've only 5 entries in the TOC. Does
it
> > >need special field codes?
> > >I've also based by Name field on Heading 1.
> > >
> > >Ivan
> > >
> > >"Word Heretic" <myfullname@tpg.com.au> schrieb im Newsbeitrag
> > >news:bqp4j05a9gbpj602shj5a79q8cr5j2odfr@4ax.com...
> > >> G'day "Ivan Debono" <ivanmdeb@hotmail.com>,
> > >>
> > >> Have you updated the TOC twice? First time gets the page numbers as
> > >> present, but if the TOC grows beyond its page it will throw all these
> > >> out.
> > >>
> > >> Steve Hudson - Word Heretic
> > >> Want a hyperlinked index? S/W R&D? See WordHeretic.com
> > >>
> > >> steve from wordheretic.com (Email replies require payment)
> > >>
> > >>
> > >> Ivan Debono reckoned:
> > >>
> > >> >Hi all,
> > >> >
> > >> >I have a VB6 app that creates a document based on a template.
> > >> >
> > >> >This template has a TOC on the first page and an autotext entry with
> > >various
> > >> >bookmarks is set up. The first field on the autotext enty (ie. the
> first
> > >> >bookmark) is a Name field and is set up to print a new page break
> before.
> > >> >The TOC is set up to use the Name bookmark instead of the heading
> fields.
> > >> >
> > >> >I generate the document, but the TOC is out of sync. The entry names
> are
> > >> >fine and in order but the page numbers are funny. The first is 3,
for
> > >> >example, and the other are all 2.
> > >> >
> > >> >Do I need to configure the TOC in another way?
> > >> >
> > >> >Thanks,
> > >> >Ivan
> > >> >
> > >>
> > >
> >
>
>
>



Re: TOC Automation problem by Ivan

Ivan
Tue Aug 31 14:23:08 CDT 2004

Thanks that was the problem.

"Chad DeMeyer" <cjdemeye at bechtel dot com> schrieb im Newsbeitrag
news:O60Vgk2jEHA.3724@TK2MSFTNGP11.phx.gbl...
> Ivan,
>
> Your page numbers are funny in the TOC because they are funny on the
actual
> pages. It looks as if you have a section's page numbering set to start at
> 2, and then you inserted a section break between each page. The new
> sections inherited the page numbering format from the original section and
> you neglected to go into the page number format for each new section and
> change to 'continue from previous'. Once you fix the page numbering in
the
> body of the document, the page numbers in the TOC will resolve themselves
to
> what you expect to see.
>
> Regards,
> Chad
>
>
> "Ivan Debono" <ivanmdeb@hotmail.com> wrote in message
> news:uV9g8QxjEHA.2812@tk2msftngp13.phx.gbl...
> > Did not work as well :(
> >
> > Attached is the document
> >
> > "Word Heretic" <myfullname@tpg.com.au> schrieb im Newsbeitrag
> > news:src7j09u1rao71ohqhbg3fjapka8c103mo@4ax.com...
> > > G'day "Ivan Debono" <ivanmdeb@hotmail.com>,
> > >
> > > Try a Maggie: Cut everything except the last para mark in each section
> > > to a new document. If this doesn't work, you may have to email the doc
> > > to me for a quick squizz.
> > >
> > > Steve Hudson - Word Heretic
> > > Want a hyperlinked index? S/W R&D? See WordHeretic.com
> > >
> > > steve from wordheretic.com (Email replies require payment)
> > >
> > >
> > > Ivan Debono reckoned:
> > >
> > > >I tried that too but to no avail. I've only 5 entries in the TOC.
Does
> it
> > > >need special field codes?
> > > >I've also based by Name field on Heading 1.
> > > >
> > > >Ivan
> > > >
> > > >"Word Heretic" <myfullname@tpg.com.au> schrieb im Newsbeitrag
> > > >news:bqp4j05a9gbpj602shj5a79q8cr5j2odfr@4ax.com...
> > > >> G'day "Ivan Debono" <ivanmdeb@hotmail.com>,
> > > >>
> > > >> Have you updated the TOC twice? First time gets the page numbers as
> > > >> present, but if the TOC grows beyond its page it will throw all
these
> > > >> out.
> > > >>
> > > >> Steve Hudson - Word Heretic
> > > >> Want a hyperlinked index? S/W R&D? See WordHeretic.com
> > > >>
> > > >> steve from wordheretic.com (Email replies require payment)
> > > >>
> > > >>
> > > >> Ivan Debono reckoned:
> > > >>
> > > >> >Hi all,
> > > >> >
> > > >> >I have a VB6 app that creates a document based on a template.
> > > >> >
> > > >> >This template has a TOC on the first page and an autotext entry
with
> > > >various
> > > >> >bookmarks is set up. The first field on the autotext enty (ie. the
> > first
> > > >> >bookmark) is a Name field and is set up to print a new page break
> > before.
> > > >> >The TOC is set up to use the Name bookmark instead of the heading
> > fields.
> > > >> >
> > > >> >I generate the document, but the TOC is out of sync. The entry
names
> > are
> > > >> >fine and in order but the page numbers are funny. The first is 3,
> for
> > > >> >example, and the other are all 2.
> > > >> >
> > > >> >Do I need to configure the TOC in another way?
> > > >> >
> > > >> >Thanks,
> > > >> >Ivan
> > > >> >
> > > >>
> > > >
> > >
> >
> >
> >
>
>