TOC for table with header repeated

Technical support for Spire.Doc

Moderator: iceblue support

TOC for table with header repeated

Postby piessequadro » Thu Nov 22, 2018 2:04 pm

We have a table (or more) with a header. The text in the header is styled with 'Header 1', to be referenced by the TOC. The header of the table is repeated for every page span by the table.
The resulting TOC has wrong page numbers - in our real application the page number references last occurance of the text, instead og the first 1.
Ex:
pg1
Table1-Header
row1
...
row n
pg2
Table1-Header
rown+1
...
row n+m
pg3
Table1-Header
rown+m+1
...
row n+m+...


The page number showed in TOC if 3, not 1.

After opening the document in MS Word, manually updating the TOC field, the page number(s) aligns correctly.

Attached, source code of simple test, a document containing a sort of template of the table (TableTemplate.dox) and the resulting document (MyDoc.docx).

Thanks.
You do not have the required permissions to view the files attached to this post.
piessequadro
 
Posts: 4
Joined: Mon Nov 05, 2018 10:53 am

Re: TOC for table with header repeated

Postby Mike.Zhang » Fri Nov 23, 2018 3:01 am

Hi,

Thanks for your inquiry.
I have reproduced the issue and logged it in our bug tracking system. Once there is any update, we will let you know. Sorry for the inconvenience caused.
Sincerely,
Mike
E-iceblue support team
User avatar
Mike.Zhang
 
Posts: 75
Joined: Thu Sep 27, 2018 7:11 am

Re: TOC for table with header repeated

Postby Mike.Zhang » Tue Dec 04, 2018 10:30 am

Hi,

Thanks for waiting.
Now the issue is fixed in Spire.Doc Pack(hot fix) Version:6.12.1.
Sincerely,
Mike
E-iceblue support team
User avatar
Mike.Zhang
 
Posts: 75
Joined: Thu Sep 27, 2018 7:11 am

Re: TOC for table with header repeated

Postby piessequadro » Tue Dec 04, 2018 2:19 pm

I confirm the issue has been solved.
Thank you very much.
piessequadro
 
Posts: 4
Joined: Mon Nov 05, 2018 10:53 am

Re: TOC for table with header repeated

Postby Mike.Zhang » Wed Dec 05, 2018 2:47 am

Hi,

Glad to hear that!
Any question, feel free to contact us.
Sincerely,
Mike
E-iceblue support team
User avatar
Mike.Zhang
 
Posts: 75
Joined: Thu Sep 27, 2018 7:11 am

Re: TOC for table with header repeated

Postby piessequadro » Wed Dec 05, 2018 5:13 pm

Hi.
With new release page numbers seems to be ok but links now are broken.
Using 'ctrl+click' on TOC line does not navigate to related page no more; the error 'it is not possible to open the specified file' is showed instead.
Please, see attached pictures for details.

Thank you.
You do not have the required permissions to view the files attached to this post.
piessequadro
 
Posts: 4
Joined: Mon Nov 05, 2018 10:53 am

Re: TOC for table with header repeated

Postby piessequadro » Wed Dec 05, 2018 5:20 pm

Update: the issue is not new (it is not related to new dll version).
Link of page numbers works correctly. Links of titles are broken.
piessequadro
 
Posts: 4
Joined: Mon Nov 05, 2018 10:53 am

Re: TOC for table with header repeated

Postby Mike.Zhang » Thu Dec 06, 2018 2:34 am

Hi,

Thanks for your details.
I have noticed the issue and forwarded it to our dev team. Once there is any update, we will inform you. Sorry for the inconvenience caused.
Sincerely,
Mike
E-iceblue support team
User avatar
Mike.Zhang
 
Posts: 75
Joined: Thu Sep 27, 2018 7:11 am


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 1 guest