RichTextBox2.Text写入到word文档
程序代码:
Private Sub Button17_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button17.Click Dim objword As New word.application objword.Visible = True objword.Documents.Add() objword.Selection.TypeText(RichTextBox2.Text) objword = Nothing End Sub这段代码可以把RichTextBox2.Text写入到word文档中,请问怎么才能文本指定字体大小、行号、标题等?