我使用 Office Word Com 来构建 word 文档,我在页眉中添加了页码,但我需要分页格式如下:
当前唯一的数字:10
我想成为 :
10 从 11
以及我想添加字体格式(粗体,字体名称,字体大小)这里是代码:
Sub addnumber(ByRef oWordDoc As Word.Document)
oWordDoc.ActiveWindow.ActivePane.View.SeekView = Word.WdSeekView.wdSeekCurrentPageHeader
oWordDoc.ActiveWindow.ActivePane.Selection.Paragraphs.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
Dim CurrentPage As Object = Word.WdFieldType.wdFieldNumPages
oWordDoc.ActiveWindow.Selection.Fields.Add(oWordDoc.ActiveWindow.Selection.Range, CurrentPage, Type.Missing)
End Sub