Hi
In my ASP.net Core MVC project I want to populate Word bookmarks of a Word document in one of the project folders. I found a product called SyncFusion which looks like something I could use but it is very expensive. Are there older versions that I could perhaps buy or other products that do the same thing
https://help.syncfusion.com/file-formats/docio/working-with-bookmarks
You can insert table, paragraph, simple text and paragraph item at the start or end location of the current bookmark by using bookmark navigator.
The following code example shows how to insert a simple text by using BookmarkNavigator.
WordDocument document = new WordDocument("Bookmarks.docx", FormatType.Docx);
//Creates the bookmark navigator instance to access the bookmark
BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document);
//Moves the virtual cursor to the location before the end of the bookmark "Northwind"
bookmarkNavigator.MoveToBookmark("Northwind");
//Inserts a new text before the bookmark end of the bookmark
bookmarkNavigator.InsertText(" Northwind Database is a set of tables containing data fitted into predefined categories.");
document.Save("Result.docx", FormatType.Docx);
document.Close();