Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed Mar 26, 2014 8:53 pm

Hi,

I merge several documents to one large document. This works fine.
After finishing the document, I would like to update the index/content page, so the merged items will come in the index/content overview (in word: "update fields").

Can this be done with spire.doc?

Thx a lot,

S

sjarl.kuyltjes@sienn.com
 
Posts: 8
Joined: Fri Feb 21, 2014 7:11 pm

Thu Mar 27, 2014 3:25 am

Hello,

Thanks for your inquiry.
The line document.IsUpdateFields = true; is to update all fields in the document.
The method document.UpdateTableOfContents(); is to update table of contents in the document.

Please feel free to contact us if you have any problems.

Best wishes,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Mon Mar 31, 2014 2:25 pm

Hi,

Thanks for the information.
I use in my code: FinalDocument.UpdateTableOfContents();
But it doesn't do nothing.

If I open the generated word document, and choose References -> Update Table, the update works.

Why doesn't my source do this for me with FinalDocument.UpdateTableOfContents();
What do I do wrong?

Thanks for you answer,

S

sjarl.kuyltjes@sienn.com
 
Posts: 8
Joined: Fri Feb 21, 2014 7:11 pm

Tue Apr 01, 2014 2:27 am

Hello,

Thanks for your response.
To help us to do an investigation and resolve your issue soon, would you please provide us your documents and your full code? You could also send your documents and code to support@e-iceblue.com.

Thanks.
Best wishes,
Amy
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc

cron