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 Jul 17, 2024 12:20 pm

Hello,

With the last release of spire.doc i have a problem with the bookmak

-In my word file I have bookmarks linked to a page number (in the first page)
-I modify the content of paragraph, so my page number change
-I save the word file

The page number on the first page don't change, i have to made an update with the popup menu.

can I do the same thing with spire.doc ?

(cf included zip file with an example, and screenshoot)

vincentjam
 
Posts: 15
Joined: Tue Apr 13, 2021 10:08 am

Thu Jul 18, 2024 2:09 am

Hello,

Thanks for your inquiry.
Sorry, your zip file does not seem to have been uploaded successfully due to network issues. To help us investigate further, please re-upload it, or you can send the file to this email: support@e-iceblue.com. Thanks in advance.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 451
Joined: Mon Dec 27, 2021 2:23 am

Thu Jul 18, 2024 7:20 am

Enclosed you can find the zip file

vincentjam
 
Posts: 15
Joined: Tue Apr 13, 2021 10:08 am

Thu Jul 18, 2024 9:19 am

Hello,

Thanks for your file.
Please use the following code to update the field codes in your document. If you have any questions, please feel free to write to back.
Code: Select all
 Document document = new Document();
 document.LoadFromFile("test.docx");
 document.IsUpdateFields = true;
 document.SaveToFile("res.docx");

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 451
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.Doc