Dim oWord As Microsoft.Office.Interop.Word.Application Dim oDoc As Microsoft.Office.Interop.Word.Document 'Start word Document template oWord = CreateObject("Word.Application") oWord.Visible = True oDoc = oWord.Documents.Add("C:\Program Files\QC7\Field Quality Report.dotm") oDoc.Bookmarks.Item("District").Range.Text = Customer_Data.CustomerTextBox.Text oDoc = Nothing oWord = Nothing GC.Collect() GC.WaitForPendingFinalizers() GC.Collect() GC.WaitForPendingFinalizers() 'All done Me.Hide()
object rng = bookmark.Range; string bookmarkName = bookmark.Name; bookmark.Range.Text = newText; this.Bookmarks.Add(bookmarkName, ref rng);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)