Use? The spire Doc
Use? The spire Doc. document;
Namespace? Insert text
{
Class? procedure
{
Static electricity Invalid? Main(string[]? Parameter)
{
//Load Word document
Documents? Doctor. =? New? Document ();
Doctor. LoadFromFile(" test . docx ");
//Get the specified bookmark location
BookmarksNavigator? Navigator? =? New? bookmarks navigator(doc);
A navigator. MoveToBookmark ("bookmark");
//Add text after bookmark
A navigator. insert text(" hello ");
//Save the file
Doctor. SaveToFile("output.docx ",file format. docx 20 13);
}
}
}