An object-oriented programming language developed by Microsoft that can be used in .NET.
Try Free Spire.Doc. Install the DLL files in your project, through NuGet, and you can read a paragraph using the code snippet like below.
Imports System.Windows.Forms
Imports Spire.Doc
Imports Spire.Doc.Documents
Namespace ExtractParagraphToRichTextbox
Public partial Class Form1
Inherits Form
Public Sub New()
InitializeComponent()
End Sub
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs)
'Load word file
Document doc = New Document()
doc.LoadFromFile("C:\Users\Administrator\Desktop\sample.docx")
'Get the specific paragraph
Dim paragraph As Paragraph = doc.Sections(0).Paragraphs(0)
'Get text
Me.richTextBox1.Text = paragraph.Text
End Sub
End Class
End Namespace