Word Selection : Word « Windows « VB.Net Tutorial






public class Test        
   public Shared Sub Main
        Dim objWord As New Word.Application

        objWord.Visible = True

        objWord.Documents.Add()

        objWord.Selection.TypeText("This is text from a VB 2005 application.")

        objWord = Nothing

   End Sub
End Class








24.20.Word
24.20.1.Word Selection
24.20.2.Create Word document and print
24.20.3.Type Text
24.20.4.InsertAfter
24.20.5.Edit Word document
24.20.6.Word Spell Checker