The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am trying to remove the Table of Contents (TOC) from a Word Document using DocIO but have so far been unable to figure out how to do this. Can anyone point me in the right direction?
In the above sample, we have done the following things.
1. Opened existing Word document which contains Table of Contents. 2. Finds the TOC instance by iterating Word document elements. 3. Inserted the bookmark start at the beginning of TOC field. 4. Finds the last item of TOC field and inserted the bookmark end after the last TOC item. 5. Removed all the TOC field items by using BookmarkNavigator functionality. 6. Finally, saved the resultant Word document.
Please let us know if you have any questions.
Regards, Vijay R
NANic AdamsApril 3, 2018 08:46 AM UTC
Thanks Vijay - works perfectly.
Nic
MJMohanaselvam Jothi Syncfusion Team April 4, 2018 05:13 AM UTC
Hi Nic,
You are welcome. We are glad to know that our solution has resolved your requirement.
Please get back to us if you need any other assistance. We will be happy to assist you as always.
Regards, Mohanaselvam J
Need More Help?
Get personalized assistance from our support team.