it seems that update of TOC does not support images in header lines.
After manual update of TOC in Microsoft Word images will be shown in TOC.
See attachement ‘Toc And Images.docx’ that is created per Aspose.
Thanks for your inquiry. Perhaps, you’re using an older version of Aspose.Words; as with Aspose.Words v11.9.0, I was unable to reproduce this problem on my side. I would suggest you please upgrade to the latest version of Aspose.Words i.e. v11.9.0 and let us know how it goes on your side. I hope, this will help.
Thanks for sharing the information. Please use latest version of Aspose.Words for Java. Please note that every new release of Aspose.Words comes up with some new features, enhancements in the existing features and bug fixes.
Thanks for the additional information. I have worked with your shared document/code and have not found any issue with TOC. I have also updated the TOC manually by using MS Word and have not seen any difference in output document. Please see the attached image.
It seems that you want to create custom images for a bullets. If yes, please read following forum link for your kind reference. https://forum.aspose.com/t/89524
Hope this answers your query. If you still face problem related with images/TOC, please create a sample word document by using MS Word (Images in TOC) and share it with us. We will share the code with you accordingly.
i don’t want to create custom images instead of bullets. I just want to insert an image to a text line that uses a header stye. That works fine!
My problem is, that this image is not shown in TOC, although i tried to update fields per Aspose.
To avoid any misunderstanding see attachements.
By the way, the following pictures are based on the generated word document file ‘TestTocAndImages.doc’ of your last mail.
TestTocAndImages Before Manual Update.png
You see your generated word document file (created by Aspose)
TOC does not contain the green checkmark!
TestTocAndImages Perform Manual Update.png
I perform the manual update for the TOC per F9 - entire TOC
Thanks for sharing the details. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-7297 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.