This project is read-only.
1
Vote

Code snippet in aspose for the below ms word document code

description

can i have the respective code snippet in aspose.words for the below code

WordApp.ActiveDocument.Bookmarks("Name").Select()
        WordApp.Selection.Text = .DistrictOffice
Thanks in advance
leo

comments

AsposeWords wrote Apr 30, 2013 at 3:22 PM

Hi Leo,

Sure, please find the equivalent Aspose code in C# below. If you require VB.NET just let me know and I can gladly add that too.
string districtOffice = "New text";
Document doc = new Document("MyDocument.docx");
doc.Range.Bookmarks["Name"].Text = districtOffice;
Cheers,
Adam