Dim wdc As New WordCreator()
Dim fl As String = "c:\temp\test.docx"
Dim fnt As New Font("黑体", 15)
wdc.AddParagraph("Foxtable是什么?")
wdc.AddParagraph("Foxtable是电子表格", fnt)
wdc.AddParagraph("Foxtable也是数据库", fnt, color.RosyBrown)
wdc.AddParagraph("Foxtable是一个优秀的应用软件", fnt, Color.Red, Word.RtfHorizontalAlignment.Center)
wdc.AddParagraph("Foxtable也是一个高效率的开发工具", fnt, Color.Green, Word.RtfHorizontalAlignment.Right)
wdc.Save(fl) '保存文件
Process.Start(fl) '打开文件
word字体还是宋体。
我测试了,加上第三个参数之后,发现英文的可以变化,中文的无法变化。