Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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);
Comment

PREVIOUS NEXT
Code Example
Csharp :: jenga db connection 
Csharp :: How to post request C# with returning responsebody 
Csharp :: What is the yield keyword used for in C#? 
Csharp :: multidimensional arrays c# 
Csharp :: c# itext 7 PdfDocument from byte array 
Csharp :: unity add button 
Csharp :: c# loop xml 
Csharp :: C# fileinfo creation date 
Csharp :: wasd code for unity 
Csharp :: get both item and index in c# 
Csharp :: c# string to float 
Csharp :: authentication and authorization in asp.net c# with example 
Csharp :: c# loop through repeater items 
Csharp :: defualtsize UWP c# 
Csharp :: c# check if array contains value 
Csharp :: static class can have non static member in c# 
Csharp :: c# convert string to uri 
Csharp :: unity lerp 
Csharp :: unity set parent canvas 
Csharp :: c# lambdas 
Csharp :: List C# add from List 
Csharp :: c# get random index from list 
Csharp :: calculator in c# 
Csharp :: c# split include separators 
Csharp :: c# float 
Csharp :: c# to pascal case 
Csharp :: Why Duplicate "..TargetFrameworkAttribute" c# assemblies created 
Csharp :: int array to frequency dictionary c# 
Csharp :: Convert DataTable to excel file c# using epplus 
Csharp :: cache trong mvc 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =