I am opening a word document from my VB windows forms application then adding text from several text boxes. I need this text to go to very beginning of the document every time rather than at the very end. Have searched online for hours and cannot seem to find a solution to this! I have managed to find WdGoToDirection.wdGoToFirst
but don't know what to do with it. Any guidance would be a help.
Dim oWordApp As New Word.Application
oWordApp.Visible = True
Dim oDoc As Word.Document = oWordApp.Documents.Open("C:\Users\christopherm\Desktop\TestBoard.htm")
oDoc = oWordApp.ActiveDocument
Dim oPara1 As Word.Paragraph, oPara2 As Word.Paragraph
Dim oPara3 As Word.Paragraph, oPara4 As Word.Paragraph
Dim oBeginning As Object = WdGoToDirection.wdGoToFirst
oPara1 = oDoc.Content.Paragraphs.Add
oPara1.Range.Text = "Heading 1234" & vbCrLf
oPara1.Format.SpaceAfter = 0
oPara1.Range.Font.Bold = True
oPara1.Range.Font.Size = 12
oPara1.Range.Font.Name = "Calibri"
oPara1.Range.InsertParagraphAfter()