Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
What is this page about?
This page outlines how to add bookmarks to a Word document programmatically using Aspose.Words.
Word.Application wordApp = Application;
wordApp.Documents.Open("Add Bookmark.doc");
Document extendedDocument = Globals.Factory.GetVstoObject(this.Application.ActiveDocument);
Bookmark firstParagraph = extendedDocument.Controls.AddBookmark(
extendedDocument.Paragraphs[1].Range, "FirstParagraph");
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.StartBookmark("MyBookmark");
builder.Writeln("Text inside a bookmark.");
builder.EndBookmark("MyBookmark");
doc.Save("Adding Bookmark.doc");
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.