Answers for "Write text in Word Document at specific location using C#"

C#
0

Write text in Word Document at specific location using C#

Application app = new Microsoft.Office.Interop.Word.Application();
Document doc = app.Documents.Open(@"your file");
string bookmark = "BookmarkName";

Bookmark bm = doc.Bookmarks[bookmark];
Range range = bm.Range;
range.Text = "Hello World";
doc.Bookmarks.Add(bookmark, range);
Posted by: Guest on May-06-2022

Code answers related to "Write text in Word Document at specific location using C#"

C# Answers by Framework

Browse Popular Code Answers by Language