Hi,
I have a .docx documents which contains a table with Bookmark “WI”.
When i upload the documents, i want to replace the entire table with new table while remaining the same bookmark . I tried below code, but the bookmark is gone after save. Could you please help on this?
To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:
Your simplified input Word documents
Aspose.Words generated output document showing the undesired behavior
Your expected document showing the correct output. You can create expected document by using MS Word. Please also list the steps that you performed in MS Word to create expected document.
Please also create a simplified standalone Java application (source code without compilation errors) that helps us to reproduce your current problem on our end and attach it here for testing.
As soon as you get these pieces of information ready, we will start further investigation into your scenario and provide you more information. Thanks for your cooperation.
P.S. You can also upload the ZIP file to Dropbox and share the Download link here for testing.
The problem occurs because the target Bookmark is part of the Table that you are removing. In this case, you need to reinsert the bookmark inside the new table by using the following code: